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

fix: When custom resources are created on api gateway and mapped with… #441

Merged
merged 1 commit into from
Aug 28, 2021

Conversation

selvendranayyaswamy
Copy link
Contributor

@selvendranayyaswamy selvendranayyaswamy commented Jul 28, 2021

… the NestJS proxy, it was not working as expected. The fix is made to address that issue

Issue #, if available: if the API gateway has custom resource/route setup, for example if my controllers path is something like employee/services/service1, employee/services/service2 etc, if I don't have any custom path/resources setup in the API gateway and directly have root/{proxy+} it works as expected, if i have a resource like /employee and child to that if there
is a resource like {proxy+} it is not working as expected and errors out with 404. This change is required to address that specific issue.

Description of changes: Always use the path that is passed on in the event argument.

Checklist

  • Tests have been added and are passing
  • Documentation has been updated

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

… the NestJS proxy, it was not working as expected. The fix is made to address that issue
@brettstack brettstack merged commit 45edbfa into CodeGenieApp:mainline Aug 28, 2021
@github-actions
Copy link

🎉 This PR is included in version 4.3.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

brett-vendia pushed a commit that referenced this pull request Aug 31, 2021
Revert to the old behavior of just routing on the proxy part.

4.3.10 is a major breaking change for existing users depending on the current behavior.

This will fix #454
github-actions bot pushed a commit that referenced this pull request Aug 31, 2021
## [4.3.11](v4.3.10...v4.3.11) (2021-08-31)

### Bug Fixes

* revert [#441](#441) ([#455](#455)) ([87aa26f](87aa26f)), closes [#454](#454)
OneDev0411 added a commit to OneDev0411/serverless-express that referenced this pull request Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants