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