blob: bc6cb099af46887259ac7d614bf1509a3d5c6e64 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
import { json } from "@sveltejs/kit";
export async function POST({ fetch, request }) {
const { target, payload } = await request.json();
const res = await fetch(target, {
method: "POST",
body: JSON.stringify(payload),
headers: { "Content-Type": "application/json" },
});
return json(res);
}
|