Significant API progress
This commit is contained in:
parent
ea72d194c2
commit
01227bb28f
27 changed files with 2378 additions and 0 deletions
24
backend/src/app/controllers/user/routes.ts
Normal file
24
backend/src/app/controllers/user/routes.ts
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
import { RouteCollection } from "../routes";
|
||||
import create from "./crud/create";
|
||||
import del from "./crud/delete";
|
||||
import login from "./login";
|
||||
|
||||
const routes: RouteCollection[] = [
|
||||
{
|
||||
httpMethod: "PUT",
|
||||
path: "/api/v1/user",
|
||||
handler: create,
|
||||
},
|
||||
{
|
||||
httpMethod: "DELETE",
|
||||
path: "/api/v1/user",
|
||||
handler: del,
|
||||
},
|
||||
{
|
||||
httpMethod: "POST",
|
||||
path: "/api/v1/user/login",
|
||||
handler: login,
|
||||
},
|
||||
];
|
||||
|
||||
export default routes;
|
||||
Loading…
Reference in a new issue