router.js 503 B

12345678910111213141516
  1. 'use strict';
  2. /**
  3. * @param {Egg.Application} app - egg application
  4. */
  5. module.exports = app => {
  6. const { router, controller } = app;
  7. router.get('/', controller.home.index);
  8. require('./router/system/admin')(app); // 管理员
  9. require('./router/setting')(app); // 设置
  10. require('./router/space')(app); // 场地
  11. require('./router/arrange')(app); // 安排
  12. require('./router/order')(app); // 订单
  13. require('./router/vip')(app); // 会员
  14. require('./router/credit')(app); // 充值
  15. };