Added configured axios instance with 401 interceptor, refactored all requests to use axios instance
This commit is contained in:
1 parent
fb292d23a6
commit
10c8751c6b
8 files changed
+56
-40
No files matched your search
@@ -8,6 +8,9 @@ import { ThemeProvider } from "@mui/material";
|
||||
import { Provider } from "react-redux";
|
||||
import { persistor, store } from "./store";
|
||||
import { PersistGate } from "redux-persist/integration/react";
|
||||
import { injectStore } from "./Utils/axiosConfig.js";
|
||||
|
||||
injectStore(store);
|
||||
|
||||
ReactDOM.createRoot(document.getElementById("root")).render(
|
||||
<React.StrictMode>
|
||||
|
||||
Reference in new issue
Block a user