diff options
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); }); |