dispatch.js 631 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('/shopping', require('./apps/shopping')); // 购物车
    app.use('/', require('./apps/channel')); // 频道页
    app.use('/me', require('./apps/me'));    // 个人中心
    app.use('/editorial', require('./apps/editorial')); // 资讯
    app.use('/product', require('./apps/product'));
    app.use('/brand', require('./apps/brand')); // 品牌
};