MCPcopy
hub / github.com/ModelEngine-Group/nexent / fetchConfig

Method fetchConfig

frontend/services/configService.ts:15–23  ·  view source on GitHub ↗

* Fetch config from backend API * @returns Raw config data from backend

()

Source from the content-addressed store, hash-verified

13 * @returns Raw config data from backend
14 */
15 async fetchConfig(): Promise<unknown> {
16 const response = await fetchWithErrorHandling(API_ENDPOINTS.config.load, {
17 method: "GET",
18 headers: getAuthHeaders(),
19 });
20
21 const result = await response.json();
22 return result.config;
23 }
24
25 /**
26 * Save config to backend API

Callers 1

useConfigFunction · 0.80

Calls 3

fetchWithErrorHandlingFunction · 0.90
getAuthHeadersFunction · 0.90
jsonMethod · 0.45

Tested by

no test coverage detected