router.js 384 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. require('./z_router/answer')(app); // 答案
  9. require('./z_router/config')(app);
  10. require('./z_router/exam')(app);
  11. require('./z_router/question_type')(app);
  12. require('./z_router/question')(app);
  13. };