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

WebHTTP AND InMemoryHTTP together #229

Open

Description

@yandiro

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?

Activity

  1. vishal423 commented on Feb 13, 2019

    @vishal423
    Contributor

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

    HttpClientInMemoryWebApiModule.forRoot(InMemoryDataService, {
      passThruUnknownUrl: true
    })
    
  2. yandiro commented on Feb 13, 2019

    @yandiro
    Author

    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions