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