Fixed pathing for routes

This commit is contained in:
Wyatt Johnson
2016-10-31 16:42:30 -06:00
parent 4963d1f05c
commit fb3fbdfe1a
2 changed files with 4 additions and 7 deletions
+4
View File
@@ -10,4 +10,8 @@ if (enabled('talk:db')) {
mongoose.set('debug', true);
}
mongoose.connection.on('error', (err) => {
throw err;
});
module.exports = mongoose;
-7
View File
@@ -1,7 +0,0 @@
const express = require('express');
const router = express.Router();
router.use('/api', require('./api'));
module.exports = router;