Skip to content
Snippets Groups Projects
Commit dcda1e89 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-2966 OZG-3171 move interceptor to tech-shared lib

parent ee758729
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,7 @@
import { CommonModule } from '@angular/common';
import { HTTP_INTERCEPTORS } from '@angular/common/http';
import { Injector, NgModule } from '@angular/core';
import { HttpBlobErrorInterceptor } from './interceptor/http-blob-error.interceptor';
import { HttpXsrfInterceptor } from './interceptor/http-xsrf.interceptor';
import { ConvertForDataTestPipe } from './pipe/convert-for-data-test.pipe';
import { EnumToLabelPipe } from './pipe/enum-to-label.pipe';
......@@ -71,6 +72,11 @@ import { ToTrafficLightPipe } from './pipe/to-traffic-light.pipe';
useClass: HttpXsrfInterceptor,
multi: true,
},
{
provide: HTTP_INTERCEPTORS,
useClass: HttpBlobErrorInterceptor,
multi: true,
},
],
})
export class TechSharedModule {
......
......@@ -55,7 +55,6 @@ import { TechSharedModule } from '@goofy-client/tech-shared';
import { de } from 'date-fns/locale';
import { AppIconComponent } from '../icon/app-icon/app-icon.component';
import { PostfachIconComponent } from '../icon/postfach-icon/postfach-icon.component';
import { HttpBlobErrorInterceptor } from '../interceptor/http-blob-error.interceptor';
import { HttpConnectionTimeoutInterceptor } from '../interceptor/http-connection-timeout.interceptor';
import { HttpErrorInterceptor } from '../interceptor/http-error.interceptor';
import { SnackbarCloseButtonComponent } from '../snackbar/snackbar-close-button/snackbar-close-button.component';
......@@ -159,11 +158,6 @@ const modules = [
useClass: HttpConnectionTimeoutInterceptor,
multi: true,
},
{
provide: HTTP_INTERCEPTORS,
useClass: HttpBlobErrorInterceptor,
multi: true,
},
{
provide: MAT_DATE_LOCALE,
useValue: de,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment