66package com .parallax .server .blocklyprop .config ;
77
88import com .google .inject .servlet .ServletModule ;
9+
910import com .parallax .server .blocklyprop .servlets .AuthenticationServlet ;
1011import com .parallax .server .blocklyprop .servlets .PrivacyPolicyServlet ;
1112import com .parallax .server .blocklyprop .servlets .ConfirmRequestServlet ;
3233import com .parallax .server .blocklyprop .servlets .TextileLibrariesServlet ;
3334import com .parallax .server .blocklyprop .servlets .TextileLicenseServlet ;
3435
36+ import com .parallax .server .blocklyprop .servlets .MessageOfTheDayServlet ;
37+
3538/**
3639 * Map each URI to a class that will handle the request
3740 *
@@ -41,29 +44,68 @@ public class ServletsModule extends ServletModule {
4144
4245 @ Override
4346 protected void configureServlets () {
47+ // Verify the app is alive
4448 serve ("/ping" ).with (PingServlet .class );
49+
50+
51+ // Return the active Message of the Day, if one is active
52+ // This is currently throwing a NPE
53+ serve ("/motd" ).with (MessageOfTheDayServlet .class );
4554
55+
56+ // Authentication service
57+ // TODO: Verify that this is used somewhere.The IDE says that
58+ // there are no references to it in the app.
4659 serve ("/authenticate" ).with (AuthenticationServlet .class );
4760
48- serve ("/project" ).with (ProjectServlet .class );
49-
61+
5062 // Register a new user account
5163 serve ("/register" ).with (RegisterServlet .class );
5264
65+
66+ // User profile
5367 serve ("/profile" ).with (ProfileServlet .class );
5468
69+
70+ // Confirm user account from email URL
5571 serve ("/confirmrequest" ).with (ConfirmRequestServlet .class );
72+
73+
74+ // Confirm account registration request. Not sure how this is different
75+ // than the confirmrequest uri.
76+ // ---------------------------------------------------------------------
5677 serve ("/confirm" ).with (ConfirmServlet .class );
57-
78+
79+
80+ // Reset password request via email
5881 serve ("/resetrequest" ).with (PasswordResetRequestServlet .class );
82+
83+
84+ // Reset user account password via the UI
85+ // ---------------------------------------------------------------------
5986 serve ("/reset" ).with (PasswordResetServlet .class );
6087
88+
89+ // Manage project details
90+ serve ("/project" ).with (ProjectServlet .class );
91+
92+
93+ //Create a new project record
6194 serve ("/createproject" ).with (ProjectCreationServlet .class );
95+
96+
97+ // Maintain a publicly accessible URI for any specific projet
6298 serve ("/projectlink" ).with (ProjectLinkServlet .class );
99+
100+
101+ // Load a project into the canvas
63102 serve ("/projecteditor" ).with (ProjectEditorServlet .class );
64103
104+
105+ // Get public attributes of a user's profile
65106 serve ("/public/profile" ).with (PublicProfileServlet .class );
66107
108+
67109 // Textile pages
68110 serve ("/index" , "/" ).with (TextileIndexServlet .class );
69111 serve ("/public/license" ).with (TextileLicenseServlet .class );
0 commit comments