Added terms with api
Some checks failed
Build frontend / build (push) Failing after 1m30s

This commit is contained in:
Rahaf
2026-06-16 13:59:17 +03:00
parent 01ac4f8d6c
commit f892fc4a4d
2 changed files with 224 additions and 73 deletions

View File

@ -704,8 +704,12 @@ export async function bookReservation(propertyInfoId, startDate, endDate) {
// ─── Terms ───
export async function getTerms() {
return apiFetch('/Terms/GetTerms');
export async function getARTerms() {
return apiFetch('/Configuration/GetARTerms');
}
export async function getENTerms() {
return apiFetch('/Configuration/GetENTerms');
}
// ─── Profile ───
@ -1151,11 +1155,11 @@ export async function updateSaleReport(id, data) {
});
}
// ─── Terms (Add) ───
// ─── Terms (Add or Update) ───
export async function addTerm(name, description) {
return apiFetch('/Terms', {
export async function addOrUpdateTerms(terms) {
return apiFetch('/Terms/AddOrUpdateTerms', {
method: 'POST',
body: { name, description },
body: terms,
});
}