import {HTTP_INTERCEPTORS} from "@angular/common/http";
import {
  FormDirtyInterceptor,
  HttpSecurityErrorInterceptor,
  HttpSecurityInterceptor
} from "@webbpm/base-package";
import {TokenInterceptor} from "../../app/interceptor/token-interceptor.service";

export const DEFAULT_HTTP_INTERCEPTOR_PROVIDERS = [
  {provide: HTTP_INTERCEPTORS, useClass: HttpSecurityInterceptor, multi: true},
  {provide: HTTP_INTERCEPTORS, useClass: HttpSecurityErrorInterceptor, multi: true},
  {provide: HTTP_INTERCEPTORS, useClass: FormDirtyInterceptor, multi: true},
  {provide: HTTP_INTERCEPTORS, useClass: TokenInterceptor, multi: true}
];
