You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
316 B
13 lines
316 B
2 years ago
|
import axios, { Axios } from 'axios';
|
||
|
|
||
|
import API_BASE_URL from './consts/API_BASE_URL';
|
||
|
|
||
|
const api = new Axios({
|
||
|
baseURL: API_BASE_URL,
|
||
|
transformRequest: axios.defaults.transformRequest,
|
||
|
transformResponse: axios.defaults.transformResponse,
|
||
|
validateStatus: (status) => status < 400,
|
||
|
});
|
||
|
|
||
|
export default api;
|