fixed the api url

This commit is contained in:
mouazkh
2026-06-23 23:45:48 +03:00
parent 199478f237
commit 8d3a745cc3
2 changed files with 6 additions and 9 deletions

View File

@ -374,10 +374,9 @@
// // ─── Booking/Reservation Management ───
import AuthService from "../services/AuthService";
const API_BASE =
process.env.NEXT_PUBLIC_API_URL || "https://45.93.137.91.nip.io/api";
const REPORT_API_BASE =
process.env.NEXT_PUBLIC_REPORT_API_URL || "http://45.93.137.91/api";
// const API_BASE =
// process.env.NEXT_PUBLIC_API_URL || "https://45.93.137.91.nip.io/api";
const API_BASE = process.env.NEXT_PUBLIC_API_URL || "http://45.93.137.91/api";
function isFormData(value) {
return typeof FormData !== "undefined" && value instanceof FormData;
@ -1033,9 +1032,7 @@ export async function payDeposit(data) {
}
export async function getMyTransaction() {
return apiFetch("/Customer/GetMyTransaction", {
method: "GET",
});
return apiFetch("/Customer/GetMyTransaction");
}
// ─── Owner Contact & Stats ───