aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/email
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-12-13 11:48:24 -0800
committerAdam Soltys <[email protected]>2024-12-13 11:48:24 -0800
commitf4293890dc01ff6970f003bc47926b2e07c896b1 (patch)
tree20c2f98810dd9371e6689f6f63ba31a2e1109694 /src/routes/(app)/email
parent0f8e6bfd3405e34baa74960e0861ad186f35505b (diff)
downloadcoinos-ui-f4293890dc01ff6970f003bc47926b2e07c896b1.tar.gz
coinos-ui-f4293890dc01ff6970f003bc47926b2e07c896b1.zip
fix email verification
Diffstat (limited to 'src/routes/(app)/email')
-rw-r--r--src/routes/(app)/email/+server.ts7
1 files changed, 7 insertions, 0 deletions
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);
+}