other means

This commit is contained in:
2023-11-09 05:50:30 +03:00
parent f015090143
commit fc06a86059
32 changed files with 353 additions and 143 deletions

View File

@@ -5,6 +5,7 @@ import {logout} from "../features/auth/authSlice";
import {store} from "../redux/store";
const apiClient = axios.create({
// baseURL: 'https://assemblr.denco.store',
baseURL: 'http://192.168.1.101:5000',
});
@@ -26,12 +27,12 @@ apiClient.interceptors.request.use(async (config) => {
return config;
}, function (error) {
console.log("очко")
if (error.response && error.response.status === 401) {
console.log("очко")
}
// return Promise.reject(error);
});