route patch fix
This commit is contained in:
@@ -38,7 +38,7 @@ router.post(
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* PUT /concentrators/:id
|
* 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? }
|
* Body: { serial_number?, name?, project_id?, location?, status?, ip_address?, firmware_version? }
|
||||||
* Protected endpoint - requires authentication
|
* Protected endpoint - requires authentication
|
||||||
*/
|
*/
|
||||||
@@ -49,6 +49,19 @@ router.put(
|
|||||||
concentratorController.update
|
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 /concentrators/:id
|
||||||
* Delete a concentrator (fails if gateways are associated)
|
* Delete a concentrator (fails if gateways are associated)
|
||||||
|
|||||||
Reference in New Issue
Block a user