MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / saveConfigData

Function saveConfigData

web/js/api.js:3–13  ·  view source on GitHub ↗
(updates)

Source from the content-addressed store, hash-verified

1import { state } from "./config.js";
2
3export async function saveConfigData(updates) {
4 const res = await fetch(state.API_BASE + "/api/config/update", {
5 method: "POST",
6 headers: { "Content-Type": "application/json" },
7 body: JSON.stringify(updates),
8 });
9 if (!res.ok) {
10 throw new Error("Save Config Failed");
11 }
12 return await res.json();
13}
14
15export async function restartRuntime() {
16 const res = await fetch(state.API_BASE + "/api/runtime/restart", {

Callers 3

handleSaveFunction · 0.90
handleSaveFunction · 0.90
handleOAuthLoginFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected