MCPcopy
hub / github.com/umami-software/umami / json

Function json

src/lib/response.ts:7–9  ·  view source on GitHub ↗
(data: Record<string, any> = {})

Source from the content-addressed store, hash-verified

5}
6
7export function json(data: Record<string, any> = {}) {
8 return Response.json(data);
9}
10
11export function badRequest(error?: Record<string, any>) {
12 return Response.json(

Callers 15

POSTFunction · 0.90
GETFunction · 0.90
POSTFunction · 0.90
GETFunction · 0.90
GETFunction · 0.90
GETFunction · 0.90
POSTFunction · 0.90
GETFunction · 0.90
GETFunction · 0.90
POSTFunction · 0.90
POSTFunction · 0.90
GETFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected