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

Method saveConfig

frontend/services/configService.ts:29–35  ·  view source on GitHub ↗

* Save config to backend API * @param config GlobalConfig to save

(config: GlobalConfig)

Source from the content-addressed store, hash-verified

27 * @param config GlobalConfig to save
28 */
29 async saveConfig(config: GlobalConfig): Promise<void> {
30 await fetchWithErrorHandling(API_ENDPOINTS.config.save, {
31 method: "POST",
32 headers: getAuthHeaders(),
33 body: JSON.stringify(config),
34 });
35 }
36}
37
38// Export singleton instance

Callers 1

useConfigFunction · 0.80

Calls 2

fetchWithErrorHandlingFunction · 0.90
getAuthHeadersFunction · 0.90

Tested by

no test coverage detected