diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-25 11:17:42 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-25 11:17:42 +0200 |
commit | e582c3b84c6090b08f33d599c354968fcd868d14 (patch) | |
tree | b6de1b7b1f708bf9126ccb709d5129e91a67c7d5 /server.js | |
parent | changed what gets collected (diff) | |
download | Divid-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-- | server.js (renamed from app.js) | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -29,8 +29,8 @@ db.once('open', function callback(){ // Bootstrap models -// This gets all model files in ./models -var models_path = __dirname + '/models'; +// This gets all model files in ./app/models +var models_path = __dirname + '/app/models'; fs.readdirSync(models_path).forEach( function(file) { require(models_path + '/' + file); }); @@ -53,7 +53,7 @@ require('./config/express')(app, config, passport); * Routes */ -require('./routes')(app, passport, auth); +require('./config/routes')(app, passport, auth); /** |