diff --git a/src/service/notification.rs b/src/service/notification.rs index 9ca0a85b496608d9eb5eab8e9eb247a9c4475d46..0b9415855b68926c08a0238ed41332c4b13d403e 100644 --- a/src/service/notification.rs +++ b/src/service/notification.rs @@ -98,4 +98,8 @@ impl NotificationService { let subscriber_result = NotificationRepository::add(payload); return Ok(subscriber_result); } + + pub fn list_messages() -> Result<Vec<String>> { + return Ok(NotificationRepository::list_all_as_string()); + } } \ No newline at end of file