diff options
| author | Adam Soltys <[email protected]> | 2024-10-19 21:55:05 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-10-19 21:55:05 -0700 |
| commit | de6c1ad727379c5ebe8550124ea9313979124953 (patch) | |
| tree | 67df287630d6e76484be526522038022a1ccf546 /src/routes/(app)/subscription/delete | |
| parent | 002cd9134d2e23bec34f838f6d6fefba41f2d530 (diff) | |
| download | coinos-ui-de6c1ad727379c5ebe8550124ea9313979124953.tar.gz coinos-ui-de6c1ad727379c5ebe8550124ea9313979124953.zip | |
push notifications
Diffstat (limited to 'src/routes/(app)/subscription/delete')
| -rw-r--r-- | src/routes/(app)/subscription/delete/+server.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/routes/(app)/subscription/delete/+server.ts b/src/routes/(app)/subscription/delete/+server.ts new file mode 100644 index 00000000..f4c8357c --- /dev/null +++ b/src/routes/(app)/subscription/delete/+server.ts @@ -0,0 +1,8 @@ +import { auth, post } from "$lib/utils"; +import { json } from "@sveltejs/kit"; + +export async function POST({ cookies, request }) { + const body = await request.json(); + const result = await post("/subscription/delete", body, auth(cookies)); + return json(result); +} |
