client.ts 270 Bytes
import axios, { AxiosInstance } from 'axios';
import { baseURL } from '../config/config';

export const client : AxiosInstance = axios.create({
    baseURL,
    headers: {
        'Content-Type': 'application/json',
        'Access-Control-Allow-Origin': '*',
    },
});