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

Merged
merged 6 commits into from
Dec 30, 2024
Merged

fix(gateway): path #440

merged 6 commits into from
Dec 30, 2024

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 Report an issue or unexpected behavior 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
@antiyro antiyro merged commit d1526dd into main Dec 30, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Report an issue or unexpected behavior
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants