Fix duplicate addRentProperty definition in api.js
All checks were successful
Build frontend / build (push) Successful in 39s

This commit is contained in:
Claw AI
2026-03-29 15:58:54 +00:00
parent 00dab824c3
commit ca1d83967e

View File

@ -116,22 +116,6 @@ export async function getProperty(id) {
return apiFetch(`/Properties/Get/${id}`); return apiFetch(`/Properties/Get/${id}`);
} }
// ─── Rent Properties (Add) ───
/**
* Add a rent property
* Request body must match Flutter AddRentPropertyDto exactly
* @param {object} data — structured request body
* @returns {Promise<object>}
*/
export async function addRentProperty(data) {
console.log('[API] Adding rent property...');
return apiFetch('/RentProperties/AddRentProperty', {
method: 'POST',
body: JSON.stringify(data),
});
}
// ─── Recommendations ─── // ─── Recommendations ───
export async function getRecommendations() { export async function getRecommendations() {