blob: f8e093efcdf47cb8c15af84540d899fa44d5b4b3 (
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" },
});
}
|