portainer/app/agent/services/pingService.js

12 lines
261 B
JavaScript

import angular from 'angular';
angular.module('portainer.agent').service('AgentPingService', AgentPingService);
function AgentPingService(AgentPing) {
return { ping };
function ping(endpointId) {
return AgentPing.ping({ endpointId }).$promise;
}
}