blob: 51f6e3d0ccbc326cf4db7b8a8d5520672faa519b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
import { auth, post } from "$lib/utils";
export async function POST({ cookies, request }) {
const body = await request.json();
await post("/payments", body, auth(cookies));
return new Response(JSON.stringify("ok"), {
headers: { "content-type": "application/json" },
});
}
|