Fix for working with backend

This commit is contained in:
KamilM1205 2026-01-02 16:02:13 +04:00
parent 5ab2d8abfd
commit d44d106b85
6 changed files with 28 additions and 22 deletions

View file

@ -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;