MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / jsonResponse

Function jsonResponse

apps/ui/src/lib/api/openapi.test.ts:49–54  ·  view source on GitHub ↗
(status: number, body: unknown)

Source from the content-addressed store, hash-verified

47});
48
49function jsonResponse(status: number, body: unknown): Response {
50 return new Response(JSON.stringify(body), {
51 status,
52 headers: { "content-type": "application/json" }
53 });
54}
55
56function textResponse(status: number, body: string): Response {
57 return new Response(body, {

Callers 1

openapi.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected