1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-26 00:39:41 +02:00
portainer/app/agent/services/pingService.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
261 B
JavaScript
Raw Normal View History

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