(url: string, config?: AxiosRequestConfig<T>)
| 27 | * Axios get request with debug logging |
| 28 | */ |
| 29 | export 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 | } |
nothing calls this directly
no test coverage detected