blob: 852e17d83d8f9cb7f47530d9e681f2b2980f0cc8 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
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' } });
}
|