15 lines
307 B
TypeScript
15 lines
307 B
TypeScript
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
import axios from "axios";
|
|
|
|
const defaultConfig = {
|
|
"Content-Type": "application/json",
|
|
"Access-Control-Allow-Origin": "*",
|
|
};
|
|
|
|
const api = axios.create({
|
|
...defaultConfig,
|
|
baseURL: import.meta.env.VITE_API_URL,
|
|
});
|
|
|
|
export default api;
|