Skip to content

Commit 331f543

Browse files
committed
fix: typo fetcher config
1 parent d95331e commit 331f543

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/config/Fetcher.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import ResponseError from 'modules/Response/ResponseError'
44

55
const AXIOS_TIMEOUT = process.env.AXIOS_TIMEOUT || 5000
66

7+
/**
8+
*
9+
* @param baseURL
10+
*/
711
function createAxios(baseURL: string): AxiosInstance {
812
const instanceAxios = axios.create({
913
baseURL,
@@ -73,13 +77,14 @@ class FetchApi {
7377
}
7478

7579
/**
76-
* axios instance with auth token
80+
* axios instance default
7781
*/
7882
get default(): AxiosInstance {
7983
if (!this.axiosDefault) {
8084
this.axiosDefault = createAxios(this.baseUri)
8185
return this.axiosDefault
8286
}
87+
8388
return this.axiosDefault
8489
}
8590
}

0 commit comments

Comments
 (0)