router.js 392 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('./router/visit.js')(app);
  9. require('./router/info.js')(app);
  10. require('./router/other.js')(app);
  11. require('./router/currentMonthRank.js')(app);
  12. require('./router/individualOrDeptRank.js')(app);
  13. };