summaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rw-r--r--index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/index.js b/index.js
index 329f86f..91dbd21 100644
--- a/index.js
+++ b/index.js
@@ -30,6 +30,9 @@ app.use('/hello', function(req, res, next) {
// connect to mongodb
mongoose.connect('mongodb://localhost/meanapp');
mongoose.connection.once('open', function() {
+
+ app.models = require('./models/index.js');
+
console.log("listening on port " + port);
app.listen(port);
});