dispatch.js 514 Bytes
/**
 * 路由分发
 * @author: xuqi<qi.xu@yoho.cn>
 * @date: 2016/4/27
 */

module.exports = app => {

    // 公共服务
    app.use('/partial', require('./apps/partial')); // 组件demo

    // 业务模块
    // app.use('/passport', require('./apps/passport'));
    app.use('/product', require('./apps/product'));

    app.use('/', require('./apps/channel')); // 频道页
    app.use('/me', require('./apps/me'));    // 个人中心

    // 资讯
    app.use('/editorial', require('./apps/editorial'));
};