aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/server.js
diff options
context:
space:
mode:
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);
/**