MCPcopy Create free account
hub / github.com/acoyfellow/cloudbox / post

Function post

scripts/demo.mjs:25–27  ·  view source on GitHub ↗
(path, body)

Source from the content-addressed store, hash-verified

23}
24
25async function post(path, body) {
26 return req(path, { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify(body) });
27}
28
29function ok(label, detail = "") {
30 events.push({ ok: true, label, detail });

Callers 1

demo.mjsFile · 0.70

Calls 1

reqFunction · 0.70

Tested by

no test coverage detected