diff --git a/src/service/notification.rs b/src/service/notification.rs index ca12a51949a28d8cfd2dca79b3efafac312065f6..1db3391ea4b53f259d789a4f565245723d4f8b65 100644 --- a/src/service/notification.rs +++ b/src/service/notification.rs @@ -96,4 +96,8 @@ impl NotificationService { let subscriber_result: Notification = 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