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

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