Add Cloudflare API controls

This commit is contained in:
2026-05-08 16:55:22 -04:00
parent cd3acf671d
commit edced5f5c0
7 changed files with 268 additions and 45 deletions
+14
View File
@@ -0,0 +1,14 @@
export function jsonResponse(
body: unknown,
status: number,
headers: Record<string, string> = {},
): Response {
return new Response(JSON.stringify(body), {
status,
headers: {
"Content-Type": "application/json; charset=utf-8",
"X-Content-Type-Options": "nosniff",
...headers,
},
});
}