aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/config/routes.js
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-05-25 11:17:42 +0200
committerDennis Eriksen <dennis.se@gmail.com>2013-05-25 11:17:42 +0200
commite582c3b84c6090b08f33d599c354968fcd868d14 (patch)
treeb6de1b7b1f708bf9126ccb709d5129e91a67c7d5 /config/routes.js
parentchanged what gets collected (diff)
downloadDivid-e582c3b84c6090b08f33d599c354968fcd868d14.tar.gz
moved and renamed files to match the filesetup we want.
havebeen using a dev-setup till now.
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);