Sign in

canrd-outside / order-erp-front · Files

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 1
  • Labels
  • Wiki
  • order-erp-front
  • apps
  • test-server
  • routes.ts
  • perf: Refactor vite configuration
    5e99463c
    vben authored
    2023-04-05 00:20:48 +0800  
    Browse Code ยป
routes.ts 428 Bytes
Edit Raw Blame History
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,
  },
];