router.js 593 B

1234567891011121314
  1. 'use strict';
  2. /**
  3. * @param {Egg.Application} app - egg application
  4. */
  5. module.exports = app => {
  6. const { router, controller } = app;
  7. // 导入导出进度
  8. router.post('/api/importandexport/handle/import/:type', controller.handle.import);
  9. router.post('/api/importandexport/handle/exports', controller.handle.export);
  10. router.get('/api/importandexport/handle/template', controller.handle.template);
  11. router.get('/api/importandexport/handle/progressed', controller.handle.progressed);
  12. router.get('/api/importandexport/handle/exportsDownload', controller.handle.exportsDownload);
  13. };