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.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/java/com/juick/http/www/Main.java b/src/java/com/juick/http/www/Main.java
index 055327dd..20885906 100644
--- a/src/java/com/juick/http/www/Main.java
+++ b/src/java/com/juick/http/www/Main.java
@@ -45,6 +45,7 @@ public class Main extends HttpServlet implements XmppListener {
Tags tags = new Tags();
RootRedirects rootRedirects = new RootRedirects();
Login login = new Login();
+ Help help = new Help();
User pagesUser = new User();
UserThread pagesUserThread = new UserThread();
NewMessage pagesNewMessage = new NewMessage();
@@ -142,6 +143,10 @@ public class Main extends HttpServlet implements XmppListener {
login.doGetLogout(sql, request, response);
} else if (uri.equals("/settings")) {
//TODO settings
+ } else if (uri.equals("/help") || uri.equals("/help/")) {
+ help.doRedirectToHelpIndex(sql, request, response);
+ } else if (uri.startsWith("/help/")) {
+ help.doGetHelp(sql, request, response);
} else if (uri.matches("^/\\d+$")) {
rootRedirects.doGetPostID(sql, request, response);
} else if (uri.matches("^/[^/]+$")) {