From efc288bc73f5a966467a6cf08a10966caff04f57 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 13 Dec 2024 11:48:24 -0800 Subject: fix email verification --- src/routes/(app)/email/+server.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/routes/(app)/email/+server.ts (limited to 'src/routes/(app)/email') diff --git a/src/routes/(app)/email/+server.ts b/src/routes/(app)/email/+server.ts new file mode 100644 index 00000000..eb98a401 --- /dev/null +++ b/src/routes/(app)/email/+server.ts @@ -0,0 +1,7 @@ +import { auth, post } from "$lib/utils"; +import { json } from "@sveltejs/kit"; + +export async function POST({ cookies, request }) { + const result = await post("/request", await request.json(), auth(cookies)); + return json(result); +} -- cgit v1.2.3