added default

This commit is contained in:
ACoolName 2024-05-25 01:06:03 +03:00
parent e87fb5b6b1
commit c3c3e14240
2 changed files with 2057 additions and 2068 deletions

4121
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -74,9 +74,11 @@ export const getDesignTokens = (mode: PaletteMode) => ({
const API_URL = `${process.env.REACT_APP_API_SCHEME}://${process.env.REACT_APP_API_URL}`
axios.defaults.withCredentials = true
export const api: AxiosInstance = axios.create({
baseURL: API_URL,
withCredentials: true
withCredentials: true,
});
export function ApiWrapper(p: { children: ReactNode}) {