1234567891011121314151617181920212223 |
- 'use strict';
- /**
- * [home的模块功能]
- * @author szjcomo
- * @createTime 2020-08-03
- * @param {[type]} app [description]
- * @return {[type]} [description]
- */
- module.exports = app => {
- /**
- * 首页路由
- */
- app.router.get('/', app.controller.home.home.index);
- /**
- * [subRouter 命名空间路由]
- * @type {[type]}
- */
- const subRouter = app.router.namespace(`/${process.env.APP_CUSTOME || 'universal'}`);
- subRouter.get('/', app.controller.home.home.index);
- // 加载商城路由
- require('./shop.js')(app);
- };
|