Skip to content

Add interceptor exclusion configuration #10

@zakhenry

Description

@zakhenry

Sometimes a third party service might call an endpoint and expect a failed response, e.g. authentication failure.

Currently, that API could add the skip interceptor param to the request method, but that is unrealistic as that API might not know about angular-rest-adapter.

Add a method on the configuration object, and/or a method at runtime to allow certain endpoints to be whitelisted from the interceptor.

E.g.

ngRestAdapter.skipInterceptorRoutes([
    '/api/auth/*',
])

Note that the pattern should support wildcard characters.

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