import Axios from 'axios' ; const { endpoint } = env_config ; const apiConfig = { baseURL : endpoint , headers : { 'Access-Control-Allow-Origin' : '*' } } ; const protectedApiConfig = { } ; export const API = Axios . create ( apiConfig ) ; export const protectedAPI = Axios . create ( protectedApiConfig ) ; protectedAPI . interceptors . request . use ( ( reqConfig ) => { return reqConfig ; } ) ; protectedAPI . interceptors . response . use ( ( resConfig ) => { return resConfig ; } ) ;