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

Function getApiUrl

atk-interface/src/utils/apiUtils.js:8–12  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

6 * @returns {string} The full API URL.
7 */
8export const getApiUrl = (path) => {
9 // Ensure path starts with a single '/'
10 const formattedPath = path.startsWith('/') ? path : `/${path}`;
11 return `${API_BASE_URL}${formattedPath}`;
12};
13
14/**
15 * Handles API errors by parsing the response and throwing a formatted error.

Callers 15

createConfigDirectoryFunction · 0.90
deleteConfigItemFunction · 0.90
moveConfigItemFunction · 0.90
duplicateConfigFunction · 0.90
fetchAvailablePipelinesFunction · 0.90
fetchInputStructureFunction · 0.90
uploadInputFilesFunction · 0.90
downloadInputItemFunction · 0.90
deleteInputItemFunction · 0.90
createInputDirectoryFunction · 0.90
moveInputItemFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected