mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-16 23:41:11 +02:00
13 lines
301 B
TypeScript
13 lines
301 B
TypeScript
import axios from "axios";
|
|
|
|
// const baseURL = `${window.location.protocol}//${window.location.host}/api/v1`;
|
|
|
|
export const api = axios.create({
|
|
baseURL: "http://localhost:3000/api/v1",
|
|
timeout: 10000,
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
});
|
|
|
|
export default api;
|