Show volume edit options for network mounts

This commit is contained in:
Johannes Zellner
2023-09-20 16:27:39 +02:00
parent 981d76ef7f
commit 328c61b67f
5 changed files with 205 additions and 16 deletions

View File

@@ -385,7 +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.post('/api/v1/volumes/:id', json, 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);