aboutsummaryrefslogtreecommitdiff
path: root/src/java/com/juick/http/www/Main.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com/juick/http/www/Main.java')
-rw-r--r--src/java/com/juick/http/www/Main.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/java/com/juick/http/www/Main.java b/src/java/com/juick/http/www/Main.java
index ec7c4e1e..a81c1ba1 100644
--- a/src/java/com/juick/http/www/Main.java
+++ b/src/java/com/juick/http/www/Main.java
@@ -49,6 +49,7 @@ public class Main extends HttpServlet implements Stream.StreamListener {
Stream xmpp;
Home home = new Home();
Discover discover = new Discover();
+ Dev dev = new Dev();
PM pm = new PM();
Login login = new Login();
Help help = new Help();
@@ -192,6 +193,13 @@ public class Main extends HttpServlet implements Stream.StreamListener {
help.doGetHelp(sql, request, response);
} else if (uri.startsWith("/tag/")) {
discover.doGet(sql, sqlSearch, request, response);
+ } else if (uri.equals("/dev")) {
+ com.juick.User visitor = Utils.getVisitorUser(sql, request, response);
+ if (visitor != null && visitor.UID == 1) {
+ dev.doGet(sql, request, response);
+ } else {
+ Errors.doGet404(sql, request, response);
+ }
} else if (uri.matches("^/\\d+$")) {
String strID = request.getRequestURI().substring(1);
int mid = 0;