aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/withdraw/+server.ts
blob: a75a72f83731ee6dc61b66ae9ffb613191ddc915 (plain) (blame)
1
2
3
4
5
6
7
8
9
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" },
  });
}