volume: use the load pattern

this way we can stash info in the eventlog
This commit is contained in:
Girish Ramakrishnan
2020-10-28 15:51:43 -07:00
parent 6a3df679fa
commit 96999e399d
4 changed files with 40 additions and 28 deletions
+3 -3
View File
@@ -301,10 +301,10 @@ function initializeExpressSync() {
// volume routes
router.post('/api/v1/volumes', json, token, authorizeAdmin, routes.volumes.add);
router.get ('/api/v1/volumes/:id', token, authorizeAdmin, routes.volumes.get);
router.del ('/api/v1/volumes/:id', token, authorizeAdmin, routes.volumes.del);
router.get ('/api/v1/volumes', token, authorizeAdmin, routes.volumes.list);
router.put ('/api/v1/volumes/:id', json, token, authorizeAdmin, routes.volumes.update);
router.get ('/api/v1/volumes/:id', token, authorizeAdmin, routes.volumes.load, routes.volumes.get);
router.del ('/api/v1/volumes/:id', token, authorizeAdmin, routes.volumes.load, routes.volumes.del);
router.put ('/api/v1/volumes/:id', json, token, authorizeAdmin, routes.volumes.load, routes.volumes.update);
// addon routes
router.get ('/api/v1/services', token, authorizeAdmin, routes.services.getAll);