fix(striker-ui): use documented way to create axios instance
This commit is contained in:
parent
b9bb280593
commit
4c2bf4dbed
@ -1,8 +1,8 @@
|
|||||||
import axios, { Axios } from 'axios';
|
import axios from 'axios';
|
||||||
|
|
||||||
import API_BASE_URL from './consts/API_BASE_URL';
|
import API_BASE_URL from './consts/API_BASE_URL';
|
||||||
|
|
||||||
const api = new Axios({
|
const api = axios.create({
|
||||||
baseURL: API_BASE_URL,
|
baseURL: API_BASE_URL,
|
||||||
transformRequest: axios.defaults.transformRequest,
|
transformRequest: axios.defaults.transformRequest,
|
||||||
transformResponse: axios.defaults.transformResponse,
|
transformResponse: axios.defaults.transformResponse,
|
||||||
|
Loading…
Reference in New Issue
Block a user