router.js 904 B

1234567891011121314151617181920
  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/journal/intact/create', controller.intact.create);
  9. router.post('/api/journal/intact/update', controller.intact.update);
  10. router.delete('/api/journal/intact/delete/:id', controller.intact.delete);
  11. router.get('/api/journal/intact/query', controller.intact.query);
  12. router.get('/api/journal/intact/fetch', controller.intact.fetch);
  13. // 目录
  14. router.post('/api/journal/catalogue/create', controller.catalogue.create);
  15. router.post('/api/journal/catalogue/update', controller.catalogue.update);
  16. router.delete('/api/journal/catalogue/delete/:id', controller.catalogue.delete);
  17. router.get('/api/journal/catalogue/query', controller.catalogue.query);
  18. router.get('/api/journal/catalogue/fetch', controller.catalogue.fetch);
  19. };