router.js 419 B

1234567891011121314
  1. 'use strict';
  2. /**
  3. * @param {Egg.Application} app - egg application
  4. */
  5. module.exports = app => {
  6. const { router, controller } = app;
  7. const profix = '/api/question/';
  8. router.get('/', controller.home.index);
  9. require('./router/question')(app); // 问题
  10. require('./router/questionnaire')(app); // 问卷
  11. require('./router/answer')(app); // 回答
  12. require('./router/investigation')(app); // 企业调查
  13. };