|
|
|
@ -28,11 +28,11 @@ module.exports = function(app, middleware) {
|
|
|
|
|
app.get('/', middleware.buildHeader, controllers.home);
|
|
|
|
|
app.get('/api/home', controllers.home);
|
|
|
|
|
|
|
|
|
|
app.get('/login', middleware.buildHeader, controllers.login);
|
|
|
|
|
app.get('/api/login', controllers.login);
|
|
|
|
|
app.get('/login', middleware.redirectToAccountIfLoggedIn, middleware.buildHeader, controllers.login);
|
|
|
|
|
app.get('/api/login', middleware.redirectToAccountIfLoggedIn, controllers.login);
|
|
|
|
|
|
|
|
|
|
app.get('/register', middleware.buildHeader, controllers.register);
|
|
|
|
|
app.get('/api/register', controllers.register);
|
|
|
|
|
app.get('/register', middleware.redirectToAccountIfLoggedIn, middleware.buildHeader, controllers.register);
|
|
|
|
|
app.get('/api/register', middleware.redirectToAccountIfLoggedIn, controllers.register);
|
|
|
|
|
|
|
|
|
|
app.get('/confirm/:code', middleware.buildHeader, controllers.confirmEmail);
|
|
|
|
|
app.get('/api/confirm/:code', controllers.confirmEmail);
|
|
|
|
|