From a330e7ebd0d04656bb84c4d9e022c249fa7421d2 Mon Sep 17 00:00:00 2001 From: Timo Bejan Date: Tue, 22 Sep 2020 15:46:08 +0300 Subject: [PATCH] removed path interceptor --- .../interceptor/api-path-interceptor.service.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/red-ui/src/app/interceptor/api-path-interceptor.service.ts b/apps/red-ui/src/app/interceptor/api-path-interceptor.service.ts index 283d24a2a..ebb15d222 100644 --- a/apps/red-ui/src/app/interceptor/api-path-interceptor.service.ts +++ b/apps/red-ui/src/app/interceptor/api-path-interceptor.service.ts @@ -11,13 +11,13 @@ export class ApiPathInterceptorService implements HttpInterceptor { intercept(req: HttpRequest, next: HttpHandler): Observable> { - if (!req.url.startsWith('/assets')) { - const updatedRequest = req.clone({ - url: this._appConfigService.getConfig(AppConfigKey.API_URL) + req.url - }) - return next.handle(updatedRequest); - } else { + // if (!req.url.startsWith('/assets')) { + // const updatedRequest = req.clone({ + // url: this._appConfigService.getConfig(AppConfigKey.API_URL) + req.url + // }) + // return next.handle(updatedRequest); + // } else { return next.handle(req); - } + // } } }