meter type id

This commit is contained in:
2026-02-02 18:00:46 -06:00
parent 6cc4ee0901
commit f921b20e15

View File

@@ -40,11 +40,20 @@ router.post('/', authenticateToken, validateCreateProject, projectController.cre
* PUT /projects/:id
* Protected endpoint - update an existing project
* Headers: Authorization: Bearer <accessToken>
* Body: { name?: string, description?: string, area_name?: string, location?: string, status?: string }
* Body: { name?: string, description?: string, area_name?: string, location?: string, status?: string, meter_type_id?: string }
* Response: { success: true, data: Project }
*/
router.put('/:id', authenticateToken, validateUpdateProject, projectController.update);
/**
* PATCH /projects/:id
* Protected endpoint - partially update an existing project
* Headers: Authorization: Bearer <accessToken>
* Body: { name?: string, description?: string, area_name?: string, location?: string, status?: string, meter_type_id?: string }
* Response: { success: true, data: Project }
*/
router.patch('/:id', authenticateToken, validateUpdateProject, projectController.update);
/**
* DELETE /projects/:id
* Protected endpoint - delete a project (requires admin role)