ngx-rocket / generator-ngx-rocket

:rocket: Extensible Angular 14+ enterprise-grade project generator
https://ngx-rocket.github.io/
MIT License
1.53k stars 217 forks source link

do a request but not with api prefix #487

Closed Paul75 closed 5 years ago

Paul75 commented 5 years ago

I'm submitting a...

Current behavior

I want to do a request but with no prefix request. I want to directly do with url....

LuisReinoso commented 5 years ago

Hi, you could try any http request adding disableApiPrefix() to send request without prefix

this.http.disableApiPrefix().get(...)
Paul75 commented 5 years ago

Hi, you could try any http request adding disableApiPrefix() to send request without prefix

this.http.disableApiPrefix().get(...)

Hello, the function disableApiPrefix() not found ....

Paul75 commented 5 years ago

I not have because I don't update the ngx-rocket for long time ...

And my version is obsolete but now I can't upgrade rapidly.

I modify the http.service.ts with the last version contain it .

No more need ?

bursauxa commented 5 years ago

URLs that are specified with a full path, meaning they start with http:// or https://, are ignored by the API prefix interceptor. This should likely cover your use case.

This change is in effect since commit 29db880 (July 2018). Note that the change was made in api-prefix.interceptor.ts, not in http.service.ts.