Sign in

简柏林 / thingskit-front · Files

GitLab

  • Go to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Network
  • thingskit-front
  • tests
  • server
  • routes.ts
  • Initial commit
    c7b48a75
    黄 x authored
    2021-10-18 15:45:23 +0800  
    Browse Files »
routes.ts 428 Bytes
Raw Blame History Permalink
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,
  },
];