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

API Gateway Prefix #161

Open
gakinson opened this issue Sep 1, 2020 · 1 comment
Open

API Gateway Prefix #161

gakinson opened this issue Sep 1, 2020 · 1 comment

Comments

@gakinson
Copy link

gakinson commented Sep 1, 2020

Hello,

Im not sure if this is an issue or if I have a setup issue, but if I do a domain mapping on API gateway then the paths no longer work correctly.

Example would be:

api.company.com/users -> maps to API gateway user service

api.get("/:userId", ....

then you call https://api.company.com/users/<some user id> , it will throw a route not found error.
@jebricker
Copy link

jebricker commented Sep 28, 2020

I am also seeing an issue passing in parameters. GET calls with no parameters work fine. With a parameter is failing. I get a 405 Method not allowed when calling these routes

Do you need to declare the variable?

api.get("/:userId/:userid

Then get it from either the req.params or req.query?

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

2 participants