aboutsummaryrefslogtreecommitdiff
path: root/juick-notifications/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'juick-notifications/src/main')
-rw-r--r--juick-notifications/src/main/java/com/juick/components/configuration/NotificationsAppConfiguration.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/juick-notifications/src/main/java/com/juick/components/configuration/NotificationsAppConfiguration.java b/juick-notifications/src/main/java/com/juick/components/configuration/NotificationsAppConfiguration.java
index 19d56d595..f7616fd1f 100644
--- a/juick-notifications/src/main/java/com/juick/components/configuration/NotificationsAppConfiguration.java
+++ b/juick-notifications/src/main/java/com/juick/components/configuration/NotificationsAppConfiguration.java
@@ -2,7 +2,10 @@ package com.juick.components.configuration;
import com.juick.components.CleanUp;
import com.juick.components.Notifications;
+import com.juick.components.Top;
+import com.juick.components.service.ApiMessagesService;
import com.juick.server.configuration.BaseWebConfiguration;
+import com.juick.service.MessagesService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.*;
import org.springframework.http.client.ClientHttpRequestInterceptor;
@@ -50,4 +53,12 @@ public class NotificationsAppConfiguration extends BaseWebConfiguration {
public CleanUp cleanUp() {
return new CleanUp();
}
+ @Bean
+ public Top top() {
+ return new Top();
+ }
+ @Bean
+ public MessagesService messagesService() {
+ return new ApiMessagesService(rest());
+ }
}