router.js 857 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/log/adminlog/create', controller.log.create);
  9. router.post('/api/log/adminlog/update', controller.log.update);
  10. router.delete('/api/log/adminlog/delete/:id', controller.log.delete);
  11. router.get('/api/log/adminlog/query', controller.log.query);
  12. router.get('/api/log/adminlog/fetch', controller.log.fetch);
  13. // 用户行为日志
  14. router.post('/api/log/userlog/create', controller.userlog.create);
  15. router.post('/api/log/userlog/update', controller.userlog.update);
  16. router.delete('/api/log/userlog/delete/:id', controller.userlog.delete);
  17. router.get('/api/log/userlog/query', controller.userlog.query);
  18. router.get('/api/log/userlog/fetch', controller.userlog.fetch);
  19. };