2024-10-06 12:39:05 -04:00
|
|
|
import axios from "axios";
|
|
|
|
|
2024-10-06 18:08:26 -04:00
|
|
|
// const baseURL = `${window.location.protocol}//${window.location.host}/api/v1`;
|
2024-10-06 14:09:26 -04:00
|
|
|
|
2024-10-06 22:09:30 -04:00
|
|
|
|
2024-10-06 12:39:05 -04:00
|
|
|
export const api = axios.create({
|
2024-10-06 22:09:30 -04:00
|
|
|
baseURL: "http://testing123.io:8081/api/v1",
|
|
|
|
timeout: 10000,
|
|
|
|
headers: {
|
|
|
|
"Content-Type": "application/json",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
export const internal = axios.create({
|
|
|
|
baseURL: "http://pangolin:3000/api/v1",
|
2024-10-06 12:39:05 -04:00
|
|
|
timeout: 10000,
|
|
|
|
headers: {
|
|
|
|
"Content-Type": "application/json",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
export default api;
|