📅  最后修改于: 2022-03-11 14:55:47.585000             🧑  作者: Mango
intercept(req: HttpRequest, next: HttpHandler): Observable> {
// put this before your current code
if (req.url.indexOf('/* the api path you want to exclude*/') === -1) {
return next.handle(req);
}
// do your stuff here.
return next.handle(req);
}