mirror of https://github.com/portainer/portainer
14 lines
526 B
JavaScript
14 lines
526 B
JavaScript
|
angular.module('portainer.docker')
|
||
|
.factory('Exec', ['$resource', 'API_ENDPOINT_ENDPOINTS', 'EndpointProvider', function ExecFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
|
||
|
'use strict';
|
||
|
return $resource(API_ENDPOINT_ENDPOINTS + '/:endpointId/docker/exec/:id/:action', {
|
||
|
endpointId: EndpointProvider.endpointID
|
||
|
},
|
||
|
{
|
||
|
resize: {
|
||
|
method: 'POST', params: {id: '@id', action: 'resize', h: '@height', w: '@width'},
|
||
|
transformResponse: genericHandler, ignoreLoadingBar: true
|
||
|
}
|
||
|
});
|
||
|
}]);
|