Implemented functional method to add a new system to a new through web app

This commit is contained in:
Logan Cusano
2023-07-16 23:21:05 -04:00
committed by logan
parent 0f114066a6
commit 6b4ffc88b3
5 changed files with 86 additions and 31 deletions

View File

@@ -12,7 +12,10 @@ router.get('/:nodeId', nodesController.getNodeInfo);
// Update an existing node
router.put('/:nodeId', nodesController.updateExistingNode);
// Update an existing node's system
// Add a system to an existing node
router.post('/:nodeId/systems', nodesController.addNodeSystem);
// Update a system on an existing node
router.put('/:nodeId/systems', nodesController.updateNodeSystem);
// TODO Need to authenticate this request