(config: InternalAxiosRequestConfig)
| 5 | import { paths } from '@/config/paths'; |
| 6 | |
| 7 | function authRequestInterceptor(config: InternalAxiosRequestConfig) { |
| 8 | if (config.headers) { |
| 9 | config.headers.Accept = 'application/json'; |
| 10 | } |
| 11 | |
| 12 | config.withCredentials = true; |
| 13 | return config; |
| 14 | } |
| 15 | |
| 16 | export const api = Axios.create({ |
| 17 | baseURL: env.API_URL, |
nothing calls this directly
no outgoing calls
no test coverage detected