Yield generated for 5633aeac-de0e-40ed-8793-a796a3a6c5b2
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.
 
 
 
 
 

15 lines
289 B

import Axios, { AxiosRequestConfig } from 'axios';
import { API_URL } from '../config';
export const axios = Axios.create({
baseURL: API_URL,
});
axios.interceptors.response.use(
(response) => {
return response.data;
},
(error) => {
return Promise.reject(error);
},
);