dispatch.js
369 Bytes
/**
* API路由分发
* @author: Leo <qi.li@yoho.cn>
* @date: 2017/6/23
*/
const api = require('./apps/api');
const article = require('./apps/article');
const passport = require('./apps/passport');
module.exports = app => {
// api
app.use('/api', api);
// 验证
app.use('/passport', passport);
// 文章
app.use('/article', article);
};