aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--app.js11
1 files changed, 3 insertions, 8 deletions
diff --git a/app.js b/app.js
index cf0d724..e498b14 100644
--- a/app.js
+++ b/app.js
@@ -4,8 +4,6 @@
*/
var express = require('express')
- , routes = require('./routes')
- , user = require('./routes/user')
, http = require('http')
, path = require('path');
@@ -27,6 +25,8 @@ app.configure(function(){
app.use(express.favicon()); // sets favicon
app.use(express.logger('dev'));
app.use(express.bodyParser());
+ app.use(express.cookieParser());
+ app.use(express.session({ secret: 'lsdrghoi4hgqio42nqf2uqi32f3bilu23fl23b' }));
app.use(express.methodOverride());
app.use(app.router);
app.use(express.static(path.join(__dirname, 'public')));
@@ -41,12 +41,7 @@ app.configure('development', function(){
* Routes
*/
-app.get('/', routes.index);
-app.get('/login', routes.login);
-app.get('/users', user.list);
-
-
-
+require('./routes/router')(app);