diff --git a/app/docker/rest/container.js b/app/docker/rest/container.js index f98409c91..a33ecb3c4 100644 --- a/app/docker/rest/container.js +++ b/app/docker/rest/container.js @@ -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', diff --git a/app/docker/rest/image.js b/app/docker/rest/image.js index c1dbb9f90..bd97d75a0 100644 --- a/app/docker/rest/image.js +++ b/app/docker/rest/image.js @@ -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 }, diff --git a/app/docker/rest/network.js b/app/docker/rest/network.js index eb92ccdf6..017cb1bda 100644 --- a/app/docker/rest/network.js +++ b/app/docker/rest/network.js @@ -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', diff --git a/app/docker/rest/system.js b/app/docker/rest/system.js index 917146c4f..342355f90 100644 --- a/app/docker/rest/system.js +++ b/app/docker/rest/system.js @@ -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' }, diff --git a/app/docker/rest/volume.js b/app/docker/rest/volume.js index 76941ea5a..0ff2571c7 100644 --- a/app/docker/rest/volume.js +++ b/app/docker/rest/volume.js @@ -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',