refactor(logins): added a proper redirect to the last place you were
This commit is contained in:
@@ -3,7 +3,7 @@ import { auth } from "../../../../pkg/auth/auth.js";
|
||||
|
||||
const router = Router();
|
||||
|
||||
router.patch("/:userId", async (req: Request, res: Response) => {
|
||||
router.get("/:userId", async (req: Request, res: Response) => {
|
||||
const userId = req.params.userId;
|
||||
const cookieHeader = req.headers.cookie ?? "";
|
||||
const authorization = req.headers.authorization ?? "";
|
||||
|
||||
Reference in New Issue
Block a user