2018-02-01 12:27:52 +00:00
|
|
|
angular.module('portainer.docker')
|
2017-07-20 14:22:27 +00:00
|
|
|
.factory('Swarm', ['$resource', 'API_ENDPOINT_ENDPOINTS', 'EndpointProvider', function SwarmFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
|
2017-06-01 08:14:55 +00:00
|
|
|
'use strict';
|
2017-07-20 14:22:27 +00:00
|
|
|
return $resource(API_ENDPOINT_ENDPOINTS + '/:endpointId/docker/swarm', {
|
2017-06-01 08:14:55 +00:00
|
|
|
endpointId: EndpointProvider.endpointID
|
|
|
|
},
|
|
|
|
{
|
2018-06-19 15:28:40 +00:00
|
|
|
get: { method: 'GET' }
|
2017-06-01 08:14:55 +00:00
|
|
|
});
|
|
|
|
}]);
|