Skip to content
Snippets Groups Projects
dlcm.interceptor.ts 508 B
Newer Older
Florent Poittevin's avatar
Florent Poittevin committed
import {HttpEvent, HttpHandler, HttpInterceptor, HttpRequest} from '@angular/common/http';
import {Injectable} from '@angular/core';
import {Observable} from 'rxjs';
import {OAuthService} from 'angular-oauth2-oidc';
Florent Poittevin's avatar
Florent Poittevin committed

@Injectable()
export class DlcmInterceptor implements HttpInterceptor {
  constructor(private oauthService: OAuthService) {
Florent Poittevin's avatar
Florent Poittevin committed
  }

  intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {

    request = request.clone({});

Florent Poittevin's avatar
Florent Poittevin committed
    return next.handle(request);
  }
}