mirror of https://github.com/portainer/portainer
16 lines
395 B
JavaScript
16 lines
395 B
JavaScript
|
angular.module('portainer.rest')
|
||
|
.factory('ContainerTop', ['$http', 'Settings', function ($http, Settings) {
|
||
|
'use strict';
|
||
|
return {
|
||
|
get: function (id, params, callback, errorCallback) {
|
||
|
$http({
|
||
|
method: 'GET',
|
||
|
url: Settings.url + '/containers/' + id + '/top',
|
||
|
params: {
|
||
|
ps_args: params.ps_args
|
||
|
}
|
||
|
}).success(callback);
|
||
|
}
|
||
|
};
|
||
|
}]);
|