diff options
Diffstat (limited to '')
-rw-r--r-- | config/routes.js (renamed from routes.js) | 12 |
1 files changed, 2 insertions, 10 deletions
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); |