route patch fix

This commit is contained in:
2026-02-03 02:36:11 -06:00
parent dda69a59ba
commit 4b977f3eae

View File

@@ -38,7 +38,7 @@ router.post(
/**
* PUT /concentrators/:id
* Update an existing concentrator
* Update an existing concentrator (full update)
* Body: { serial_number?, name?, project_id?, location?, status?, ip_address?, firmware_version? }
* Protected endpoint - requires authentication
*/
@@ -49,6 +49,19 @@ router.put(
concentratorController.update
);
/**
* PATCH /concentrators/:id
* Update an existing concentrator (partial update)
* Body: { serial_number?, name?, project_id?, location?, status?, ip_address?, firmware_version? }
* Protected endpoint - requires authentication
*/
router.patch(
'/:id',
authenticateToken,
validateUpdateConcentrator,
concentratorController.update
);
/**
* DELETE /concentrators/:id
* Delete a concentrator (fails if gateways are associated)