mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +02:00
refactor(docker/configs): remove EndpointProvider [EE-5746] (#9198)
This commit is contained in:
parent
cd3c6e3089
commit
1b0fd60115
7 changed files with 25 additions and 23 deletions
|
@ -1,13 +1,12 @@
|
|||
angular.module('portainer.docker').factory('Config', [
|
||||
'$resource',
|
||||
'API_ENDPOINT_ENDPOINTS',
|
||||
'EndpointProvider',
|
||||
function ConfigFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
|
||||
function ConfigFactory($resource, API_ENDPOINT_ENDPOINTS) {
|
||||
'use strict';
|
||||
return $resource(
|
||||
API_ENDPOINT_ENDPOINTS + '/:endpointId/docker/configs/:id/:action',
|
||||
API_ENDPOINT_ENDPOINTS + '/:environmentId/docker/configs/:id/:action',
|
||||
{
|
||||
endpointId: EndpointProvider.endpointID,
|
||||
environmentId: '@environmentId',
|
||||
},
|
||||
{
|
||||
get: { method: 'GET', params: { id: '@id' } },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue