From b31ef2b5b88d9fa77bc7fa5224e68a8088e316d1 Mon Sep 17 00:00:00 2001 From: Korbs Date: Wed, 17 Jul 2024 19:05:49 -0400 Subject: [PATCH] When a regular account requests delete function, direct to signout API as well --- src/pages/api/account/delete.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/api/account/delete.ts b/src/pages/api/account/delete.ts index 0df196d..c998dce 100644 --- a/src/pages/api/account/delete.ts +++ b/src/pages/api/account/delete.ts @@ -10,5 +10,5 @@ export const POST: APIRoute = async ({ redirect }) => { return new Response(error.message, { status: 500 }) } - return redirect("/signout") + return redirect("/api/auth/signout") }