| 123456789101112131415161718192021222324252627282930 |
- var app = angular.module('sentinelDashboardApp');
- app.service('IdentityService', ['$http', function ($http) {
- this.fetchIdentityOfMachine = function (ip, port, searchKey) {
- var param = {
- ip: ip,
- port: port,
- searchKey: searchKey
- };
- return $http({
- url: 'resource/machineResource.json',
- params: param,
- method: 'GET'
- });
- };
- this.fetchClusterNodeOfMachine = function (ip, port, searchKey) {
- var param = {
- ip: ip,
- port: port,
- type: 'cluster',
- searchKey: searchKey
- };
- return $http({
- url: 'resource/machineResource.json',
- params: param,
- method: 'GET'
- });
- };
- }]);
|