MCPcopy
hub / github.com/Alishahryar1/free-claude-code / api

Function api

api/admin_static/admin.js:67–76  ·  view source on GitHub ↗
(path, options = {})

Source from the content-addressed store, hash-verified

65}
66
67async function api(path, options = {}) {
68 const response = await fetch(path, {
69 headers: { "Content-Type": "application/json", ...(options.headers || {}) },
70 ...options,
71 });
72 if (!response.ok) {
73 throw new Error(`${response.status} ${response.statusText}`);
74 }
75 return response.json();
76}
77
78async function load() {
79 showMessage("Loading admin config");

Callers 5

loadFunction · 0.85
validateFunction · 0.85
applyFunction · 0.85
refreshLocalStatusFunction · 0.85
testProviderFunction · 0.85

Calls 1

jsonMethod · 0.80

Tested by

no test coverage detected