router.js 285 B

1234567891011
  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.resources('dataimp', '/api/dataimp', controller.dataimp); // index、create、show、destroy
  9. };