|
|
@ -39,10 +39,10 @@ export class HttpResponseInterceptor implements HttpInterceptor { |
|
|
this.info = this.dataService.fetchInfo(); |
|
|
this.info = this.dataService.fetchInfo(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public intercept( |
|
|
public intercept<T>( |
|
|
request: HttpRequest<any>, |
|
|
request: HttpRequest<T>, |
|
|
next: HttpHandler |
|
|
next: HttpHandler |
|
|
): Observable<HttpEvent<any>> { |
|
|
): Observable<HttpEvent<T>> { |
|
|
return next.handle(request).pipe( |
|
|
return next.handle(request).pipe( |
|
|
catchError((error: HttpErrorResponse) => { |
|
|
catchError((error: HttpErrorResponse) => { |
|
|
if (error.status === StatusCodes.FORBIDDEN) { |
|
|
if (error.status === StatusCodes.FORBIDDEN) { |
|
|
|