router.js 451 B

12345678910111213
  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/contribution/draft/create', controller.draft.create);
  9. router.post('/api/contribution/draft/update', controller.draft.update);
  10. router.delete('/api/contribution/draft/delete/:id', controller.draft.delete);
  11. router.get('/api/contribution/draft/query', controller.draft.query);
  12. };