diff options
Diffstat (limited to 'src/routes/(app)/withdraw/+server.ts')
| -rw-r--r-- | src/routes/(app)/withdraw/+server.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/routes/(app)/withdraw/+server.ts b/src/routes/(app)/withdraw/+server.ts new file mode 100644 index 00000000..a75a72f8 --- /dev/null +++ b/src/routes/(app)/withdraw/+server.ts @@ -0,0 +1,10 @@ +import { auth, post } from "$lib/utils"; + +export async function POST({ cookies, request }) { + let body = await request.json(); + await post("/payments", body, auth(cookies)); + + return new Response(JSON.stringify("ok"), { + headers: { "content-type": "application/json" }, + }); +} |
