fix(striker-ui): use documented way to create axios instance

This commit is contained in:
Tsu-ba-me 2024-05-07 14:43:42 -04:00
parent b9bb280593
commit 4c2bf4dbed

View File

@ -1,8 +1,8 @@
import axios, { Axios } from 'axios';
import axios from 'axios';
import API_BASE_URL from './consts/API_BASE_URL';
const api = new Axios({
const api = axios.create({
baseURL: API_BASE_URL,
transformRequest: axios.defaults.transformRequest,
transformResponse: axios.defaults.transformResponse,