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

Function fetchInputStructure

atk-interface/src/api.js:162–169  ·  view source on GitHub ↗
(relativePath = '.')

Source from the content-addressed store, hash-verified

160// --- Input API ---
161
162export const fetchInputStructure = async (relativePath = '.') => {
163 const url = getApiUrl(`/inputs/structure/${encodeURIComponent(relativePath)}`);
164 const response = await fetch(url);
165 if (!response.ok) {
166 await handleApiError(response, 'fetch input structure');
167 }
168 return response.json();
169};
170
171export const uploadInputFiles = async (relativePath, files) => {
172 const url = getApiUrl(`/inputs/upload/${encodeURIComponent(relativePath)}`);

Callers 1

FileManagerProviderFunction · 0.90

Calls 2

getApiUrlFunction · 0.90
handleApiErrorFunction · 0.90

Tested by

no test coverage detected