routes.ts 428 B

1234567891011121314151617181920212223
  1. import UserController from './controller/UserController';
  2. import FileController from './controller/FileController';
  3. export default [
  4. // user
  5. {
  6. path: '/login',
  7. method: 'post',
  8. action: UserController.login,
  9. },
  10. {
  11. path: '/getUserInfoById',
  12. method: 'get',
  13. action: UserController.getUserInfoById,
  14. },
  15. // file
  16. {
  17. path: '/upload',
  18. method: 'post',
  19. action: FileController.upload,
  20. },
  21. ];