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

Method fetch

packages/xadmin-api-jsonplaceholder/src/index.js:10–14  ·  view source on GitHub ↗
(id, options)

Source from the content-addressed store, hash-verified

8 }
9
10 fetch(id, options) {
11 return fetch(this.getHost() + this.resource + (id ? ('/' + id) : '') , options).then((resp) => {
12 return resp.json()
13 }).catch(console.error)
14 }
15
16}

Callers

nothing calls this directly

Calls 1

getHostMethod · 0.95

Tested by

no test coverage detected