Skip to content

Multiples Routes to one function on API Gateway #537

Closed Answered by heitorlessa
gwlester asked this question in Q&A
Discussion options

You must be logged in to vote

Updated: We had further discussions on Slack about this which led to two features: prefix stripping (/v1/hello, /v2/hello), and the Router for route splitting.

The prefix stripping feature addressed the main challenge: API Mappings. This features changes how API Gateway REST (v1) behaves when a request arrives. API Gateway adds the mapping as part of the route information within the event, leading to 404s and the original intent of wanting to register multiple routes for the same function.

Later and also related to this, we added support for route splitting to address the challenge of having routes defined in more than one file.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by heitorlessa
Comment options

You must be logged in to vote
5 replies
@heitorlessa
Comment options

@ttopholm
Comment options

@heitorlessa
Comment options

@heitorlessa
Comment options

@ttopholm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants