From 1a2a36090fea7cf497b3525ae5eba873525cd250 Mon Sep 17 00:00:00 2001 From: adueck Date: Tue, 2 Apr 2024 16:33:55 +0300 Subject: [PATCH] route for delete-account --- account/src/routers/auth-router.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/account/src/routers/auth-router.ts b/account/src/routers/auth-router.ts index c04820c..85fa3a9 100644 --- a/account/src/routers/auth-router.ts +++ b/account/src/routers/auth-router.ts @@ -51,6 +51,13 @@ const authRouter = (passport: PassportStatic) => { }); }); + router.get("/delete-account", (req, res) => { + res.render("delete-account", { + user: req.user, + error: null, + }); + }); + router.post("/user", async (req, res, next) => { const page = "user"; if (!req.user) return next("user not found");