mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
refactor(docker): remove EndpointProvider from commit [EE-5641] (#9123)
This commit is contained in:
parent
f02ede00b3
commit
599d214e50
2 changed files with 4 additions and 7 deletions
|
@ -1,14 +1,11 @@
|
|||
angular.module('portainer.docker').factory('Commit', [
|
||||
'$resource',
|
||||
'API_ENDPOINT_ENDPOINTS',
|
||||
'EndpointProvider',
|
||||
function CommitFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
|
||||
function CommitFactory($resource, API_ENDPOINT_ENDPOINTS) {
|
||||
'use strict';
|
||||
return $resource(
|
||||
API_ENDPOINT_ENDPOINTS + '/:endpointId/docker/commit',
|
||||
{
|
||||
endpointId: EndpointProvider.endpointID,
|
||||
},
|
||||
API_ENDPOINT_ENDPOINTS + '/:environmentId/docker/commit',
|
||||
{},
|
||||
{
|
||||
commitContainer: { method: 'POST', params: { container: '@id', repo: '@repo' }, ignoreLoadingBar: true },
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue