Revize 7f244939
Přidáno uživatelem Lukáš Vlček před asi 2 roky(ů)
webapp/utils/axios.ts | ||
---|---|---|
4 | 4 |
import { getToken } from './login'; |
5 | 5 |
import { useContext } from 'react'; |
6 | 6 |
import { LoggedUserContext } from '../contexts/LoggedUserContext'; |
7 |
import { getApiBasePath } from '../constants'; |
|
7 | 8 |
|
8 | 9 |
export const axios = axiosLib.create({ |
9 |
baseURL: 'https://localhost:7241',
|
|
10 |
baseURL: getApiBasePath(),
|
|
10 | 11 |
timeout: 60000, |
11 | 12 |
}); |
12 | 13 |
|
Také k dispozici: Unified diff
Re #9582