Fix duplicate addRentProperty definition in api.js
All checks were successful
Build frontend / build (push) Successful in 39s
All checks were successful
Build frontend / build (push) Successful in 39s
This commit is contained in:
@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user