MCPcopy Create free account
hub / github.com/MigoXLab/coderio / get

Function get

src/utils/axios.ts:29–45  ·  view source on GitHub ↗
(url: string, config?: AxiosRequestConfig<T>)

Source from the content-addressed store, hash-verified

27 * Axios get request with debug logging
28 */
29export async function get<T>(url: string, config?: AxiosRequestConfig<T>): Promise<T> {
30 const response = await axios.get<T>(url, config);
31
32 saveDebugLog(
33 {
34 url,
35 config: config ?? {},
36 },
37 {
38 status: response.status,
39 statusText: response.statusText,
40 data: response.data,
41 }
42 );
43
44 return response.data;
45}

Callers

nothing calls this directly

Calls 1

saveDebugLogFunction · 0.85

Tested by

no test coverage detected