dispatch.js
424 Bytes
/**
* 路由分发
*
* @author: Aiden Xu<aiden.xu@yoho.cn>
* @date: 2016/4/27
*/
module.exports = app => {
app.use('/', require('./apps/channel'));
app.use('/product', require('./apps/product'));
app.use('/home', require('./apps/home'));
// 组件示例
if (app.locals.devEnv) {
app.use('/example', require('./apps/example'));
}
app.use('/product', require('./apps/product'));
};