Significant API progress

This commit is contained in:
oitsjustjose 2022-04-14 20:27:45 -05:00
commit 01227bb28f
27 changed files with 2378 additions and 0 deletions

View 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;