portainer/app/docker/rest/systemEndpoint.js

20 lines
479 B
JavaScript

angular.module('portainer.docker').factory('SystemEndpoint', [
'$resource',
'API_ENDPOINT_ENDPOINTS',
function SystemEndpointFactory($resource, API_ENDPOINT_ENDPOINTS) {
'use strict';
return $resource(
API_ENDPOINT_ENDPOINTS + '/:endpointId/docker/:action/:subAction',
{
name: '@name',
},
{
ping: {
method: 'GET',
params: { action: '_ping', endpointId: '@endpointId' },
},
}
);
},
]);