diff options
Diffstat (limited to '')
-rw-r--r-- | config/express.js | 2 | ||||
-rw-r--r-- | config/routes.js (renamed from routes.js) | 12 |
2 files changed, 3 insertions, 11 deletions
diff --git a/config/express.js b/config/express.js index eb10b20..4c09b17 100644 --- a/config/express.js +++ b/config/express.js @@ -13,7 +13,7 @@ var express = require('express'); module.exports = function (app, config, passport) { //sets view engine and path - app.set('views', config.root + '/views'); + app.set('views', config.root + '/app/views'); app.set('view engine', 'ejs'); app.use(express.static(config.root + '/public')); diff --git a/routes.js b/config/routes.js index 1062f08..8ba83a9 100644 --- a/routes.js +++ b/config/routes.js @@ -3,8 +3,8 @@ * Dependencies */ -var users = require('./controllers/users') - , system = require('./controllers/system'); +var users = require('../app/controllers/users') + , system = require('../app/controllers/system'); /* @@ -16,24 +16,16 @@ var users = require('./controllers/users') module.exports = function(app, passport, auth) { app.get('/', system.index); - app.get('/test', system.test); - - app.get('/home', system.home); - app.get('/faq', system.faq); app.get('/contact', system.contact); - app.get('/login', users.login); - app.post('/login', passport.authenticate('local', { failureRedirect: '/' }), users.signin); app.get('/signup', users.signup); app.post('/signup', users.create); - app.post('/test', users.signin); - app.get('/auth/facebook', passport.authenticate('facebook', { failureRedirect: '/' }), users.signin); app.get('/auth/facebook/callback', passport.authenticate('facebook', { failureRedirect: '/' }), users.authCallback); |