mirror of
https://github.com/wassname/talk.git
synced 2026-07-12 21:56:59 +08:00
Fixed pathing for routes
This commit is contained in:
@@ -10,4 +10,8 @@ if (enabled('talk:db')) {
|
||||
mongoose.set('debug', true);
|
||||
}
|
||||
|
||||
mongoose.connection.on('error', (err) => {
|
||||
throw err;
|
||||
});
|
||||
|
||||
module.exports = mongoose;
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
const express = require('express');
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
router.use('/api', require('./api'));
|
||||
|
||||
module.exports = router;
|
||||
Reference in New Issue
Block a user