/* Http Interceptors */
import { HTTP_INTERCEPTORS } from '@angular/common/http';
import { DefaultUrlSerializer, UrlSerializer } from '@angular/router';
import { ApiPrefixInterceptor } from './apiPrefixInterceptor';
import { BearerInterceptor } from './bearerInterceptor';
import { HttpErrorInterceptor } from './httpErrorInterceptor';

/** Http interceptor providers in outside-in order */
export const HttpInterceptorProviders = [
  { provide: HTTP_INTERCEPTORS, useClass: ApiPrefixInterceptor, multi: true },
  { provide: HTTP_INTERCEPTORS, useClass: BearerInterceptor, multi: true },
  //{ provide: UrlSerializer, useClass: DefaultUrlSerializer },
  //{ provide: HTTP_INTERCEPTORS, useClass: HttpErrorInterceptor, multi: true },
];