Add endpoint to update MI project-level roles

This commit is contained in:
Tuan Dang
2023-11-24 19:50:01 +07:00
parent 595a26a366
commit 180274be34
5 changed files with 127 additions and 20 deletions
+8
View File
@@ -101,6 +101,14 @@ router.post(
workspaceController.addMachineToWorkspace
);
router.patch(
"/:workspaceId/machine-memberships/:machineId",
requireAuth({
acceptedAuthModes: [AuthMode.JWT, AuthMode.API_KEY]
}),
workspaceController.updateMachineWorkspaceRole
);
router.delete(
"/:workspaceId/machine-memberships/:machineId",
requireAuth({