Fix for working with backend
This commit is contained in:
parent
5ab2d8abfd
commit
d44d106b85
6 changed files with 28 additions and 22 deletions
|
|
@ -1,11 +1,12 @@
|
|||
import axios from "axios";
|
||||
const API_BASE_URL = 'http://localhost:3000/api';
|
||||
const API_BASE_URL = 'http://localhost:8080/api/v1/';
|
||||
|
||||
const apiClient = axios.create({
|
||||
baseURL: API_BASE_URL,
|
||||
timeout: 10000,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'Origin': 'localhost:8080'
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -17,4 +18,4 @@ apiClient.interceptors.response.use(
|
|||
}
|
||||
);
|
||||
|
||||
export default apiClient;
|
||||
export default apiClient;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue