From 1f63848ca9fb01336f04b41434de1cc06a5b3d93 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 10 Sep 2024 20:39:47 -0700 Subject: move routes --- src/routes/(static)/support/+server.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/routes/(static)/support/+server.ts (limited to 'src/routes/(static)/support/+server.ts') diff --git a/src/routes/(static)/support/+server.ts b/src/routes/(static)/support/+server.ts new file mode 100644 index 00000000..e9a16cfc --- /dev/null +++ b/src/routes/(static)/support/+server.ts @@ -0,0 +1,9 @@ +import { json } from "@sveltejs/kit"; +import { auth, post } from "$lib/utils"; + +export const prerender = false; + +export async function POST({ cookies, request }) { + let result = await post("/email", await request.json(), auth(cookies)); + return json(result); +} -- cgit v1.2.3