diff options
| author | Adam Soltys <[email protected]> | 2024-12-13 11:48:24 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-12-13 11:48:24 -0800 |
| commit | efc288bc73f5a966467a6cf08a10966caff04f57 (patch) | |
| tree | 20c2f98810dd9371e6689f6f63ba31a2e1109694 /src/routes/(app)/email | |
| parent | a4aba929eee1f7cad95d1c58eb322175b5e6cfbc (diff) | |
| download | coinos-ui-efc288bc73f5a966467a6cf08a10966caff04f57.tar.gz coinos-ui-efc288bc73f5a966467a6cf08a10966caff04f57.zip | |
fix email verification
Diffstat (limited to 'src/routes/(app)/email')
| -rw-r--r-- | src/routes/(app)/email/+server.ts | 7 |
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); +} |
