Implement functioning method to update systems on web app

This commit is contained in:
Logan Cusano
2023-07-16 22:30:18 -04:00
parent 5428ac6144
commit 318ee7bf91
5 changed files with 113 additions and 19 deletions

View File

@@ -12,6 +12,9 @@ router.get('/:nodeId', nodesController.getNodeInfo);
// Update an existing node
router.put('/:nodeId', nodesController.updateExistingNode);
// Update an existing node's system
router.put('/:nodeId/systems', nodesController.updateNodeSystem);
// TODO Need to authenticate this request
/* POST a new node to the server
*
@@ -28,7 +31,7 @@ router.put('/:nodeId', nodesController.updateExistingNode);
router.post('/newNode', nodesController.newNode);
// TODO Need to authenticate this request
// Client checkin with the server to update information
// Client checkin with the server to update client information
router.post('/nodeCheckIn/:nodeId', nodesController.nodeCheckIn);
// Request a node to check in with the server