router.js 416 B

1234567891011121314
  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. router.post('/util', controller.home.util);
  9. require('./z_router/usual')(app); // 通常接口
  10. require('./z_router/login')(app); // 登陆
  11. require('./z_router/wx')(app); // 微信
  12. require('./z_router/import')(app); // 导入
  13. };