2024-10-06 12:39:05 -04:00
|
|
|
import axios from "axios";
|
|
|
|
|
2024-10-26 17:01:34 -04:00
|
|
|
// let origin;
|
|
|
|
// if (typeof window !== "undefined") {
|
|
|
|
// origin = window.location.origin;
|
|
|
|
// }
|
|
|
|
|
2024-10-06 12:39:05 -04:00
|
|
|
export const api = axios.create({
|
2024-10-26 17:01:34 -04:00
|
|
|
baseURL: `http://localhost:3000/api/v1`,
|
2024-10-06 22:09:30 -04:00
|
|
|
timeout: 10000,
|
|
|
|
headers: {
|
|
|
|
"Content-Type": "application/json",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
export const internal = axios.create({
|
2024-10-26 17:01:34 -04:00
|
|
|
baseURL: `http://localhost:3000/api/v1`,
|
2024-10-06 12:39:05 -04:00
|
|
|
timeout: 10000,
|
|
|
|
headers: {
|
|
|
|
"Content-Type": "application/json",
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
export default api;
|