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

Method getHost

demo/src/api.js:6–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4export default class API extends RESTBaseAPI {
5
6 getHost() {
7 return 'https://jsonplaceholder.typicode.com/'
8 }
9
10 fetch(id, options) {
11 return fetch(this.getHost() + this.resource + (id ? ('/' + id) : '') , options).then((resp) => {

Callers 1

fetchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected