mirror of https://github.com/portainer/portainer
13 lines
455 B
JavaScript
13 lines
455 B
JavaScript
angular.module('portainer.rest')
|
|
.factory('Volume', ['$resource', 'Settings', function VolumeFactory($resource, Settings) {
|
|
'use strict';
|
|
return $resource(Settings.url + '/volumes/:name/:action', {name: '@name'}, {
|
|
query: {method: 'GET'},
|
|
get: {method: 'GET'},
|
|
create: {method: 'POST', params: {action: 'create'}, transformResponse: genericHandler},
|
|
remove: {
|
|
method: 'DELETE', transformResponse: genericHandler
|
|
}
|
|
});
|
|
}]);
|