Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

WebHTTP AND InMemoryHTTP together #229

Open
yandiro opened this issue Feb 13, 2019 · 2 comments
Open

WebHTTP AND InMemoryHTTP together #229

yandiro opened this issue Feb 13, 2019 · 2 comments

Comments

@yandiro
Copy link

yandiro commented Feb 13, 2019

I would like to use in-memory but I need regular http requests to login to the system.

So I need only one module to use the in-memory-web-api. (How) can it be done?

@vishal423
Copy link
Contributor

you can intercept specific calls and let remaining flows through like below in your core module:

HttpClientInMemoryWebApiModule.forRoot(InMemoryDataService, {
  passThruUnknownUrl: true
})

@yandiro
Copy link
Author

yandiro commented Feb 13, 2019

This solved the issue. Thank you very much !

you can intercept specific calls and let remaining flows through like below in your core module:

HttpClientInMemoryWebApiModule.forRoot(InMemoryDataService, {
passThruUnknownUrl: true
})

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants