MCPcopy
hub / github.com/e-p-armstrong/augmentoolkit / fetchConfigContent

Function fetchConfigContent

atk-interface/src/api.js:46–50  ·  view source on GitHub ↗
(relativePath)

Source from the content-addressed store, hash-verified

44}
45
46export async function fetchConfigContent(relativePath) {
47 if (!relativePath) throw new Error('Relative path is required for fetchConfigContent');
48 const response = await fetch(`${API_BASE_URL}/configs/content/${encodeURIComponent(relativePath)}`);
49 return handleApiResponse(response);
50}
51
52export async function saveConfigContent(relativePath, content) {
53 if (!relativePath) throw new Error('Relative path is required for saveConfigContent');

Callers 1

ConfigEditorFunction · 0.90

Calls 1

handleApiResponseFunction · 0.85

Tested by

no test coverage detected