portainer/app/agent/services/pingService.js

12 lines
237 B
JavaScript
Raw Normal View History

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