aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/server.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 /server.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--server.js (renamed from app.js)6
1 files changed, 3 insertions, 3 deletions
diff --git a/app.js b/server.js
index d1911ee..e30b9ee 100644
--- a/app.js
+++ b/server.js
@@ -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);
/**