mirror of https://github.com/portainer/portainer
parent
b50497301d
commit
5abd35d4c1
|
@ -1,14 +1,11 @@
|
||||||
angular.module('portainer.agent').service('AgentPingService', [
|
import angular from 'angular';
|
||||||
'AgentPing',
|
|
||||||
function AgentPingService(AgentPing) {
|
|
||||||
var service = {};
|
|
||||||
|
|
||||||
service.ping = ping;
|
angular.module('portainer.agent').service('AgentPingService', AgentPingService);
|
||||||
|
|
||||||
|
function AgentPingService(AgentPing) {
|
||||||
|
return { ping };
|
||||||
|
|
||||||
function ping() {
|
function ping() {
|
||||||
return AgentPing.ping().$promise;
|
return AgentPing.ping().$promise;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return service;
|
|
||||||
},
|
|
||||||
]);
|
|
||||||
|
|
Loading…
Reference in New Issue