Skip to content

Instantly share code, notes, and snippets.

@rpinna
Last active September 21, 2018 05:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rpinna/9ef2fb836a528f95b8257ec415ace025 to your computer and use it in GitHub Desktop.
Save rpinna/9ef2fb836a528f95b8257ec415ace025 to your computer and use it in GitHub Desktop.
@Injectable()
export class LoggingHttpInterceptor implements HttpInterceptor {
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
console.log(`${req.url} has been intercepted!`);
return next.handle(req);
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment