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

Function createConfigDirectory

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

Source from the content-addressed store, hash-verified

65 * @returns {Promise<object>} - API response.
66 */
67export const createConfigDirectory = async (relativePath) => {
68 const url = getApiUrl('/configs/directory');
69 const response = await fetch(url, {
70 method: 'POST',
71 headers: { 'Content-Type': 'application/json' },
72 body: JSON.stringify({ relative_path: relativePath }),
73 });
74 // Use handleApiResponse which includes error handling
75 return handleApiResponse(response);
76};
77
78/**
79 * Deletes a specific config file.

Callers 1

handleCreateFolderFunction · 0.90

Calls 2

getApiUrlFunction · 0.90
handleApiResponseFunction · 0.85

Tested by

no test coverage detected