diff options
| author | Adam Soltys <[email protected]> | 2026-03-03 22:45:50 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-03-03 22:45:50 -0800 |
| commit | 1e9ed8fa128ec5ae038be14ef168cad37c1c0eb1 (patch) | |
| tree | 29399a82df3f981a24ef6cc84562c8ee006738d7 /src/routes/(app)/disable2fa/+server.ts | |
| parent | e66a08d18f2bef2eccfe84042a2674141a73d1c2 (diff) | |
| download | coinos-ui-1e9ed8fa128ec5ae038be14ef168cad37c1c0eb1.tar.gz coinos-ui-1e9ed8fa128ec5ae038be14ef168cad37c1c0eb1.zip | |
api proxy
Diffstat (limited to 'src/routes/(app)/disable2fa/+server.ts')
| -rw-r--r-- | src/routes/(app)/disable2fa/+server.ts | 13 |
1 files changed, 0 insertions, 13 deletions
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"); - } -} |
