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 PUT /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 updating an existing property listing. However, the controller method backing this route — PropertyController.modify — has not yet been implemented.
This endpoint is defined in the routing layer but the controller implementation is pending. Calling PUT /api/properties will not return any data or perform any database operation. 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

PUT /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.put("/", authRequired, PropertyController.modify);
property.controller.js
static modify(req, res) {}
No request body processing, schema validation, or database interaction has been implemented. This endpoint is reserved for a future release.

Planned Behavior

When implemented, this endpoint is expected to accept a property identifier and a set of fields to update, validate the input against the property schema, and persist the changes to the properties table for the authenticated user’s listing.

Build docs developers (and LLMs) love