You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
428 B

  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. ];