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(gateway): path #440

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

fix(gateway): path #440

wants to merge 6 commits into from

Conversation

jbcaron
Copy link
Member

@jbcaron jbcaron commented Dec 23, 2024

Pull Request type

Please add the labels corresponding to the type of changes your PR introduces:

  • Bugfix

What is the current behavior?

The gateway_router function incorrectly matches paths for the add_transaction endpoint. Requests to /gateway/add_transaction result in a Not Found response because the matching logic does not handle paths correctly.

Resolves: #NA

What is the new behavior?

  • Fixed the path matching logic in the gateway_router fn

Does this introduce a breaking change?

No

Other information

Would also work using req.uri().path().trim_start_matches('/'), but path approach is cleaner imho.

@jbcaron jbcaron added the bug Something isn't working label Dec 23, 2024
@jbcaron
Copy link
Member Author

jbcaron commented Dec 23, 2024

replace #429

@jbcaron jbcaron mentioned this pull request Dec 23, 2024
@jbcaron jbcaron requested a review from antiyro December 23, 2024 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In review
Development

Successfully merging this pull request may close these issues.

4 participants