pass user login data
This commit is contained in:
parent
e2b46becf0
commit
ba3c763a09
3 changed files with 71 additions and 0 deletions
14
src/routes/user.ts
Normal file
14
src/routes/user.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
import express from "express";
|
||||
import { getUserTotp, verifyUserTotp } from "../controller/userController";
|
||||
|
||||
var router = express.Router({ mergeParams: true });
|
||||
|
||||
router.get("/totp", async (req, res) => {
|
||||
await getUserTotp(req, res);
|
||||
});
|
||||
|
||||
router.post("/verify", async (req, res) => {
|
||||
await verifyUserTotp(req, res);
|
||||
});
|
||||
|
||||
export default router;
|
Loading…
Add table
Add a link
Reference in a new issue