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

main
Tsu-ba-me 8 months ago
parent b9bb280593
commit 4c2bf4dbed
  1. 4
      striker-ui/lib/api.ts

@ -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,

Loading…
Cancel
Save