|
|
|
@ -27,7 +27,7 @@ function mainRoutes(app, middleware, controllers) {
|
|
|
|
|
|
|
|
|
|
setupPageRoute(app, '/login', middleware, loginRegisterMiddleware, controllers.login);
|
|
|
|
|
setupPageRoute(app, '/register', middleware, loginRegisterMiddleware, controllers.register);
|
|
|
|
|
setupPageRoute(app, '/compose', middleware, [middleware.authenticate], controllers.compose);
|
|
|
|
|
setupPageRoute(app, '/compose', middleware, [], controllers.compose);
|
|
|
|
|
setupPageRoute(app, '/confirm/:code', middleware, [], controllers.confirmEmail);
|
|
|
|
|
setupPageRoute(app, '/outgoing', middleware, [], controllers.outgoing);
|
|
|
|
|
setupPageRoute(app, '/search/:term?', middleware, [], controllers.search.search);
|
|
|
|
|