Add rest api to update volume mount options

This commit is contained in:
Johannes Zellner
2023-09-20 15:48:11 +02:00
parent a2450be63a
commit 981d76ef7f
4 changed files with 55 additions and 0 deletions
+1
View File
@@ -385,6 +385,7 @@ async function initializeExpressSync() {
router.post('/api/v1/volumes', json, token, authorizeAdmin, routes.volumes.add);
router.get ('/api/v1/volumes', token, authorizeAdmin, routes.volumes.list);
router.get ('/api/v1/volumes/:id', token, authorizeAdmin, routes.volumes.load, routes.volumes.get);
router.post('/api/v1/volumes/:id', token, authorizeAdmin, routes.volumes.load, routes.volumes.update);
router.del ('/api/v1/volumes/:id', token, authorizeAdmin, routes.volumes.load, routes.volumes.del);
router.get ('/api/v1/volumes/:id/status', token, authorizeAdmin, routes.volumes.load, routes.volumes.getStatus);
router.post('/api/v1/volumes/:id/remount', token, authorizeAdmin, routes.volumes.load, routes.volumes.remount);