📜  使用 url 排除 sppiner 拦截器 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:47.585000             🧑  作者: Mango

代码示例1
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);
  }