Skip to main content

Documentation 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.

The 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.
This endpoint is defined in the routing layer but the controller implementation is pending. Calling DELETE /api/properties will not delete any record or return any data. The controller body is currently empty and the server will send no response, causing the request to hang until a timeout occurs. Do not rely on this endpoint in production.

Endpoint

DELETE /api/properties

Authentication

Required. The authRequired middleware is applied to this route and will reject requests that do not carry a valid token cookie.
ConditionStatusBody
No token cookie present401{ "message": "No Token, Unauthorized" }
token cookie present but invalid or expired403{ "message": "Invalid Token" }

Implementation Status

The route is registered in property.routes.js and the controller stub exists in property.controller.js, but the method body is empty:
property.routes.js
router.delete("/", authRequired, PropertyController.delete);
property.controller.js
static delete(req, res) {}
No property identifier parsing, authorization checks, or database delete operation have been implemented. This endpoint is reserved for a future release.

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 the properties table.

Build docs developers (and LLMs) love