Further index.ts ref

This commit is contained in:
oitsjustjose 2022-04-15 08:35:34 -05:00
commit 55e19609e8
7 changed files with 10 additions and 10 deletions

View file

@ -1,7 +1,7 @@
import { RouteCollection } from "../routes";
import { RouteCollection } from "..";
import create from "./crud/create";
import del from "./crud/delete";
import forgot from "./crud/forgot";
import forgot from "./auth/forgot";
import login from "./auth/login";
import validate from "./auth/validate";
@ -18,17 +18,17 @@ const routes: RouteCollection[] = [
},
{
httpMethod: "POST",
path: "/api/v1/user/login",
path: "/api/v1/user/auth/login",
handler: login,
},
{
httpMethod: "GET",
path: "/api/v1/user/forgot",
path: "/api/v1/user/auth/forgot",
handler: forgot,
},
{
httpMethod: "GET",
path: "/api/v1/user/validateEmail",
path: "/api/v1/user/auth/email/validate",
handler: validate,
},
];