diff options
author | 2016-10-24 15:01:34 +0300 | |
---|---|---|
committer | 2016-10-24 15:05:43 +0300 | |
commit | 1a38addf7a4ab6186d97ea1ee71ed3889a5e6b08 (patch) | |
tree | a00c98797807c9857df21ecb8965056ab2f6c1b7 /juick-api/src/main/java/com/juick/api/Main.java | |
parent | 95ac207e5dd5566490571fda7229b754a2bbe7ac (diff) |
api: subscriptions
Diffstat (limited to 'juick-api/src/main/java/com/juick/api/Main.java')
-rw-r--r-- | juick-api/src/main/java/com/juick/api/Main.java | 4 |
1 files changed, 4 insertions, 0 deletions
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 cad991ef..3bd1e750 100644 --- a/juick-api/src/main/java/com/juick/api/Main.java +++ b/juick-api/src/main/java/com/juick/api/Main.java @@ -70,6 +70,7 @@ public class Main extends HttpServlet implements Stream.StreamListener { Users users; PM pm; Others others; + Subscriptions subscriptions; TelegramBotHook tgb; SkypeEndpoint sep; @@ -90,6 +91,7 @@ public class Main extends HttpServlet implements Stream.StreamListener { users = new Users(jdbc); pm = new PM(jdbc); others = new Others(jdbc); + subscriptions = new Subscriptions(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")), @@ -183,6 +185,8 @@ public class Main extends HttpServlet implements Stream.StreamListener { messages.doSetPopular(request, response, xmpp); } else if (uri.equals("/messages/set_privacy") && vuid > 0) { messages.doSetPrivacy(request, response, xmpp, vuid); + } else if (uri.equals("/subscriptions")) { + subscriptions.doGet(request, response, vuid); } else { response.sendError(404); } |