login by password or totp
This commit is contained in:
parent
a476bf6823
commit
be22c78372
3 changed files with 39 additions and 12 deletions
|
@ -1,8 +1,12 @@
|
|||
import express from "express";
|
||||
import { login, logout, refresh } from "../controller/authController";
|
||||
import { kickof, login, logout, refresh } from "../controller/authController";
|
||||
|
||||
var router = express.Router({ mergeParams: true });
|
||||
|
||||
router.post("/kickof", async (req, res) => {
|
||||
await kickof(req, res);
|
||||
});
|
||||
|
||||
router.post("/login", async (req, res) => {
|
||||
await login(req, res);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue