FlatAndFlatmates
Search…
⌃K

Apartments

File Name : apartments.js File Path : /server/routes/apartments.js This route is used to handle user's apartment related queries. For example: creating an apartment, updating apartment details, fetching apartments, fetching filtered apartments, delete apartment etc.
get
/api/apartments
Get Apartments
post
/api/apartments
Create Apartment (Flat)
put
/api/apartments/?id=${_id}
Update Apartment
get
/api/apartments/filterdApartments
Get filtered Apartments
get
/api/apartments/deleteApartment/?id=${id}
Delete Apartment
Last modified 3yr ago