From 1e9ed8fa128ec5ae038be14ef168cad37c1c0eb1 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 3 Mar 2026 22:45:50 -0800 Subject: api proxy --- src/routes/(app)/disable2fa/+server.ts | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 src/routes/(app)/disable2fa/+server.ts (limited to 'src/routes/(app)/disable2fa/+server.ts') diff --git a/src/routes/(app)/disable2fa/+server.ts b/src/routes/(app)/disable2fa/+server.ts deleted file mode 100644 index 0d1c4573..00000000 --- a/src/routes/(app)/disable2fa/+server.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { error, json } from "@sveltejs/kit"; -import { auth, post } from "$lib/utils"; - -export async function POST({ cookies, request }) { - try { - const body = await request.json(); - const res = await post("/disable2fa", body, auth(cookies)); - - return json(res); - } catch { - error(500, "Problem disabling 2fa"); - } -} -- cgit v1.2.3