MCPcopy Create free account
hub / github.com/dailydotdev/apps / json

Function json

packages/world-cli/src/dev.js:59–66  ·  view source on GitHub ↗
(req, res, status, body)

Source from the content-addressed store, hash-verified

57};
58
59const json = (req, res, status, body) => {
60 res.writeHead(status, {
61 "content-type": "application/json",
62 "cache-control": "no-store",
63 ...corsFor(req),
64 });
65 res.end(JSON.stringify(body));
66};
67
68const compressedJson = (req, res, body) => {
69 const zipped = gzipSync(JSON.stringify(body));

Callers 1

startDevFunction · 0.85

Calls 1

corsForFunction · 0.85

Tested by

no test coverage detected