diff --git a/src/service/notification.rs b/src/service/notification.rs index 3a3d09e0243131d17070990cd7c232f28bbf44ec..ecf310610c1e56e76ed1fd32129fca3d9a728083 100644 --- a/src/service/notification.rs +++ b/src/service/notification.rs @@ -87,4 +87,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