dispatch.js 610 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(require('./apps/passport'));

    // 业务模块
    app.use('/api', require('./apps/api')); // 各模块公有 API
    app.use('/product', require('./apps/product'));
    app.use('/guang', require('./apps/guang'));
    app.use('/activity', require('./apps/activity'));
    app.use('/home', require('./apps/home'));
};