finishing auth controller verification
This commit is contained in:
@ -1,7 +1,17 @@
|
||||
import Elysia from "elysia";
|
||||
import { loginWithPassword } from "./controller/loginWithPassword.controller";
|
||||
import { authMiddleware } from "../../middleware/auth.middleware";
|
||||
import { authVerification } from "./controller/authVerification.controller";
|
||||
|
||||
export const authModule = new Elysia({ prefix: "/auth" }).post(
|
||||
"/legacy",
|
||||
loginWithPassword
|
||||
);
|
||||
export const authModule = new Elysia({ prefix: "/auth" })
|
||||
.post("/legacy", loginWithPassword)
|
||||
.post("/verification", authVerification)
|
||||
.get(
|
||||
"/test",
|
||||
() => {
|
||||
return "PASSED";
|
||||
},
|
||||
{
|
||||
beforeHandle: authMiddleware,
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user