We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d95331e commit 331f543Copy full SHA for 331f543
src/config/Fetcher.ts
@@ -4,6 +4,10 @@ import ResponseError from 'modules/Response/ResponseError'
4
5
const AXIOS_TIMEOUT = process.env.AXIOS_TIMEOUT || 5000
6
7
+/**
8
+ *
9
+ * @param baseURL
10
+ */
11
function createAxios(baseURL: string): AxiosInstance {
12
const instanceAxios = axios.create({
13
baseURL,
@@ -73,13 +77,14 @@ class FetchApi {
73
77
}
74
78
75
79
/**
76
- * axios instance with auth token
80
+ * axios instance default
81
*/
82
get default(): AxiosInstance {
83
if (!this.axiosDefault) {
84
this.axiosDefault = createAxios(this.baseUri)
85
return this.axiosDefault
86
87
+
88
89
90
0 commit comments