Skip to content

Instantly share code, notes, and snippets.

@rpinna
Last active Sep 21, 2018
Embed
What would you like to do?
@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