MCPcopy Create free account
hub / github.com/sshwsfc/xadmin / put

Method put

packages/xadmin/src/api.js:35–39  ·  view source on GitHub ↗
(id, data)

Source from the content-addressed store, hash-verified

33 }
34
35 put(id, data) {
36 return this.fetch(id, { method: 'PUT', body: JSON.stringify(data) }).then((item) => {
37 return { ...data, ...item }
38 })
39 }
40
41 post(data) {
42 return this.fetch(null, { method: 'POST', body: JSON.stringify(data) }).then((item) => {

Callers 1

saveMethod · 0.95

Calls 1

fetchMethod · 0.95

Tested by

no test coverage detected