From 9dd7686b67b924f0d394afab40fc089d9d617af6 Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Wed, 7 May 2025 08:27:48 +0200 Subject: [PATCH] change: request method for account credential change --- src/routes/user.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/user.ts b/src/routes/user.ts index 90ba489..68b6b7c 100644 --- a/src/routes/user.ts +++ b/src/routes/user.ts @@ -34,15 +34,15 @@ router.post("/verify", async (req, res) => { await verifyMyTotp(req, res); }); -router.post("/changepw", async (req, res) => { +router.patch("/changepw", async (req, res) => { await changeMyPassword(req, res); }); -router.post("/changeToTOTP", async (req, res) => { +router.patch("/changeToTOTP", async (req, res) => { await changeToTOTP(req, res); }); -router.post("/changeToPW", async (req, res) => { +router.patch("/changeToPW", async (req, res) => { await changeToPW(req, res); });