R
R
RxApi
Search…
Router
Router configuration file in "./http/router.js":
1
const users = require('./routes/users');
2
const articles = require('./routes/articles');
3
4
module.exports = (app, db, http) => {
5
6
app.use('/articles', articles(db));
7
app.use('/users', users(db));
8
9
};
Copied!
Copy link