TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/nelrondon/backend-proyecto-estructuras/llms.txt
Use this file to discover all available pages before exploring further.
DELETE /api/properties route is defined in the property router and protected by the authRequired authentication middleware, which requires a valid token cookie. The route is intended to support removing a property listing from the database. However, the controller method backing this route — PropertyController.delete — has not yet been implemented.
Endpoint
Authentication
Required. TheauthRequired middleware is applied to this route and will reject requests that do not carry a valid token cookie.
| Condition | Status | Body |
|---|---|---|
No token cookie present | 401 | { "message": "No Token, Unauthorized" } |
token cookie present but invalid or expired | 403 | { "message": "Invalid Token" } |
Implementation Status
The route is registered inproperty.routes.js and the controller stub exists in property.controller.js, but the method body is empty:
property.routes.js
property.controller.js
Planned Behavior
When implemented, this endpoint is expected to accept a property identifier (likely as a path parameter or in the request body), verify that the authenticated user owns the listing, and remove the corresponding row from theproperties table.