mirror of https://github.com/portainer/portainer
fix(ui): remove loading of missing interceptors [EE-4604] (#8086)
parent
1e4c4e2616
commit
253a3a2b40
|
@ -4,8 +4,7 @@ angular.module('portainer.docker').factory('Container', [
|
|||
'$resource',
|
||||
'API_ENDPOINT_ENDPOINTS',
|
||||
'EndpointProvider',
|
||||
'ContainersInterceptor',
|
||||
function ContainerFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider, ContainersInterceptor) {
|
||||
function ContainerFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
|
||||
'use strict';
|
||||
return $resource(
|
||||
API_ENDPOINT_ENDPOINTS + '/:endpointId/docker/containers/:id/:action',
|
||||
|
@ -18,7 +17,6 @@ angular.module('portainer.docker').factory('Container', [
|
|||
method: 'GET',
|
||||
params: { all: 0, action: 'json', filters: '@filters' },
|
||||
isArray: true,
|
||||
interceptor: ContainersInterceptor,
|
||||
},
|
||||
get: {
|
||||
method: 'GET',
|
||||
|
|
|
@ -6,8 +6,7 @@ angular.module('portainer.docker').factory('Image', [
|
|||
'API_ENDPOINT_ENDPOINTS',
|
||||
'EndpointProvider',
|
||||
'HttpRequestHelper',
|
||||
'ImagesInterceptor',
|
||||
function ImageFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider, HttpRequestHelper, ImagesInterceptor) {
|
||||
function ImageFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider, HttpRequestHelper) {
|
||||
'use strict';
|
||||
|
||||
return $resource(
|
||||
|
@ -16,7 +15,7 @@ angular.module('portainer.docker').factory('Image', [
|
|||
endpointId: EndpointProvider.endpointID,
|
||||
},
|
||||
{
|
||||
query: { method: 'GET', params: { all: 0, action: 'json' }, isArray: true, interceptor: ImagesInterceptor },
|
||||
query: { method: 'GET', params: { all: 0, action: 'json' }, isArray: true },
|
||||
get: { method: 'GET', params: { action: 'json' } },
|
||||
search: { method: 'GET', params: { action: 'search' } },
|
||||
history: { method: 'GET', params: { action: 'history' }, isArray: true },
|
||||
|
|
|
@ -4,8 +4,7 @@ angular.module('portainer.docker').factory('Network', [
|
|||
'$resource',
|
||||
'API_ENDPOINT_ENDPOINTS',
|
||||
'EndpointProvider',
|
||||
'NetworksInterceptor',
|
||||
function NetworkFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider, NetworksInterceptor) {
|
||||
function NetworkFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
|
||||
'use strict';
|
||||
return $resource(
|
||||
API_ENDPOINT_ENDPOINTS + '/:endpointId/docker/networks/:id/:action',
|
||||
|
@ -17,7 +16,6 @@ angular.module('portainer.docker').factory('Network', [
|
|||
query: {
|
||||
method: 'GET',
|
||||
isArray: true,
|
||||
interceptor: NetworksInterceptor,
|
||||
},
|
||||
get: {
|
||||
method: 'GET',
|
||||
|
|
|
@ -4,9 +4,7 @@ angular.module('portainer.docker').factory('System', [
|
|||
'$resource',
|
||||
'API_ENDPOINT_ENDPOINTS',
|
||||
'EndpointProvider',
|
||||
'InfoInterceptor',
|
||||
'VersionInterceptor',
|
||||
function SystemFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider, InfoInterceptor, VersionInterceptor) {
|
||||
function SystemFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
|
||||
'use strict';
|
||||
return $resource(
|
||||
API_ENDPOINT_ENDPOINTS + '/:endpointId/docker/:action/:subAction',
|
||||
|
@ -18,9 +16,8 @@ angular.module('portainer.docker').factory('System', [
|
|||
info: {
|
||||
method: 'GET',
|
||||
params: { action: 'info' },
|
||||
interceptor: InfoInterceptor,
|
||||
},
|
||||
version: { method: 'GET', params: { action: 'version' }, interceptor: VersionInterceptor },
|
||||
version: { method: 'GET', params: { action: 'version' } },
|
||||
events: {
|
||||
method: 'GET',
|
||||
params: { action: 'events', since: '@since', until: '@until' },
|
||||
|
|
|
@ -4,8 +4,7 @@ angular.module('portainer.docker').factory('Volume', [
|
|||
'$resource',
|
||||
'API_ENDPOINT_ENDPOINTS',
|
||||
'EndpointProvider',
|
||||
'VolumesInterceptor',
|
||||
function VolumeFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider, VolumesInterceptor) {
|
||||
function VolumeFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
|
||||
'use strict';
|
||||
|
||||
function addVolumeNameToHeader(config) {
|
||||
|
@ -18,7 +17,7 @@ angular.module('portainer.docker').factory('Volume', [
|
|||
endpointId: EndpointProvider.endpointID,
|
||||
},
|
||||
{
|
||||
query: { method: 'GET', interceptor: VolumesInterceptor },
|
||||
query: { method: 'GET' },
|
||||
get: { method: 'GET', params: { id: '@id' } },
|
||||
create: {
|
||||
method: 'POST',
|
||||
|
|
Loading…
Reference in New Issue