release: WRNexusJS 0.8.0
Quality / quality (ubuntu-latest) (push) Failing after 21s
Quality / quality (windows-latest) (push) Canceled after 0s

This commit is contained in:
2026-08-02 23:18:51 +05:30
parent 87507edf59
commit 586a6db8ff
625 changed files with 243608 additions and 11210 deletions
+6 -1
View File
@@ -8,6 +8,11 @@ export const GET = async () => {
};
export const POST = async (ctx: Context) => {
const body = await ctx.req.json();
const body = await ctx.req.json().catch(() => undefined);
if (body === undefined)
return Response.json(
{ error: "Request body must be valid JSON." },
{ status: 400, headers: { "cache-control": "no-store" } },
);
return Response.json({ received: body });
};