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

module.exports = app => {

    // 公共服务

    // 四个频道页,频道选择页面 /boys,/girls,/,/kids,/lifestyle 等页面,就直接占用路由了
    app.use(require('./apps/channel'));

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