исправил baseURL
This commit is contained in:
1 parent
e75023f15a
commit
20afce31dd
1 file changed
+2
-2
+2
-2
@@ -3,7 +3,7 @@ import axios, { AxiosInstance } from 'axios';
|
||||
class ApiClient {
|
||||
private axiosInstance: AxiosInstance;
|
||||
|
||||
constructor(baseURL: string = 'https://pvh.projects.rustprogersteam.ru') {
|
||||
constructor(baseURL: string = 'https://pvh.projects.rustprogersteam.ru/api') {
|
||||
this.axiosInstance = axios.create({
|
||||
baseURL,
|
||||
timeout: 10000,
|
||||
@@ -71,4 +71,4 @@ class ApiClient {
|
||||
}
|
||||
}
|
||||
|
||||
export const client = new ApiClient('https://pvh.projects.rustprogersteam.ru/api');
|
||||
export const client = new ApiClient();
|
||||
Reference in new issue
Block a user