Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stripPrefix not honoured when using host option in request #46

Open
bholbrook73 opened this issue Aug 27, 2015 · 0 comments
Open

stripPrefix not honoured when using host option in request #46

bholbrook73 opened this issue Aug 27, 2015 · 0 comments

Comments

@bholbrook73
Copy link
Contributor

{
    stripPrefix: '/api/v1',
    basePath: '/alpha',
    host: '1111111.execute-api.us-west-2.amazonaws.com',
}

Each endpoint is prefixed with /api/v1, which has been successfully stripped from the documentation, however, it's adding it to the end of host/basePath which provides an incorrect request destination.

Example Request Destination:
https://1111111.execute-api.us-west-2.amazonaws.com/alpha/api/v1/endpoint

Expected:
https://1111111.execute-api.us-west-2.amazonaws.com/alpha/endpoint

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

No branches or pull requests

1 participant