diff options
Diffstat (limited to 'src/java/com/juick/http/www/Main.java')
-rw-r--r-- | src/java/com/juick/http/www/Main.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/java/com/juick/http/www/Main.java b/src/java/com/juick/http/www/Main.java index c6c4f1b8..f4342392 100644 --- a/src/java/com/juick/http/www/Main.java +++ b/src/java/com/juick/http/www/Main.java @@ -41,7 +41,7 @@ public class Main extends HttpServlet { Connection sql; Connection sqlSearch; Stream xmpp; - Blogs blogs; + Blogs blogs = new Blogs(); Login login = new Login(); Help help = new Help(); User pagesUser = new User(); @@ -51,6 +51,7 @@ public class Main extends HttpServlet { VKontakteLogin loginVK = new VKontakteLogin(); SignUp signup = new SignUp(); Settings settings = new Settings(); + Dev dev = new Dev(); @Override public void init() throws ServletException { @@ -68,8 +69,6 @@ public class Main extends HttpServlet { xmpp.start(); */ - blogs = new Blogs(sql); - PageTemplates.sape = new Sape(conf.getProperty("sape_user"), "juick.com", 2000, 3600); } catch (Exception e) { log(null, e); @@ -144,6 +143,8 @@ public class Main extends HttpServlet { blogs.doGet(sql, sqlSearch, request, response); } else if (uri.startsWith("/places/")) { blogs.doGet(sql, sqlSearch, request, response); + } else if (uri.equals("/dev/")) { + dev.doGet(sql, request, response); } else if (uri.matches("^/\\d+$")) { String strID = request.getRequestURI().substring(1); int mid = 0; |