MCPcopy Create free account
hub / github.com/SensAI-PT/RAGMeUp / getConfig

Function getConfig

ui/node-react/client/src/api.js:237–241  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

235
236// Config
237export async function getConfig() {
238 const res = await fetch(`${API_BASE}/config`, { headers: getHeaders() });
239 if (!res.ok) throw new Error('Failed to fetch config');
240 return res.json();
241}
242
243export async function updateConfig(config, reinitialize = false) {
244 const res = await fetch(`${API_BASE}/config`, {

Callers 1

ConfigPage.jsFile · 0.90

Calls 1

getHeadersFunction · 0.85

Tested by

no test coverage detected