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 #429

Closed
wants to merge 5 commits into from
Closed

Conversation

Uacias
Copy link

@Uacias Uacias commented Dec 18, 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.

@antiyro
Copy link
Member

antiyro commented Dec 18, 2024

Could you fix CI on that? Adding changelog should do the job.

@Uacias Uacias force-pushed the hotfix/gateway_router branch from 3dabd1b to 379a2fa Compare December 20, 2024 09:52
@jbcaron jbcaron changed the title Gateway path fix. fix(gateway): path Dec 23, 2024
@jbcaron jbcaron added the bug Something isn't working label Dec 23, 2024
@jbcaron jbcaron mentioned this pull request Dec 23, 2024
@jbcaron
Copy link
Member

jbcaron commented Dec 23, 2024

close by #440

@jbcaron jbcaron closed this Dec 23, 2024
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: Done
Development

Successfully merging this pull request may close these issues.

3 participants