From fee6237f70338f2f960bc3dc614263e2db5dccef Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 24 Oct 2016 15:33:42 +0300 Subject: api: notifications --- juick-api/src/main/java/com/juick/api/Main.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'juick-api/src/main/java/com/juick/api/Main.java') diff --git a/juick-api/src/main/java/com/juick/api/Main.java b/juick-api/src/main/java/com/juick/api/Main.java index 3bd1e750..3c5c3303 100644 --- a/juick-api/src/main/java/com/juick/api/Main.java +++ b/juick-api/src/main/java/com/juick/api/Main.java @@ -71,6 +71,7 @@ public class Main extends HttpServlet implements Stream.StreamListener { PM pm; Others others; Subscriptions subscriptions; + Notifications notifications; TelegramBotHook tgb; SkypeEndpoint sep; @@ -92,6 +93,7 @@ public class Main extends HttpServlet implements Stream.StreamListener { pm = new PM(jdbc); others = new Others(jdbc); subscriptions = new Subscriptions(jdbc); + notifications = new Notifications(jdbc); tgb = new TelegramBotHook(jdbc, conf.getProperty("telegram_token", "")); sep = new SkypeEndpoint(); setupXmppComponent(conf.getProperty("xmpp_host", "localhost"), Integer.parseInt(conf.getProperty("xmpp_port", "5347")), @@ -187,6 +189,8 @@ public class Main extends HttpServlet implements Stream.StreamListener { messages.doSetPrivacy(request, response, xmpp, vuid); } else if (uri.equals("/subscriptions")) { subscriptions.doGet(request, response, vuid); + } else if (uri.equals("/notifications")) { + notifications.doGet(request, response, vuid); } else { response.sendError(404); } -- cgit v1.2.3