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(api): url wildcard param #17

Merged
merged 2 commits into from
Nov 24, 2023
Merged

fix(api): url wildcard param #17

merged 2 commits into from
Nov 24, 2023

Conversation

y-eight
Copy link
Contributor

@y-eight y-eight commented Nov 24, 2023

Motivation

Wildcard /checks/* route is registered in API for the internal check endpoints.
The check registers the wildcard route itself in the routing tree.
The handleChecks func needs to map this correctly.

Changes

For additional information look at the commits.

@y-eight y-eight added the bug Something isn't working label Nov 24, 2023
@niklastreml
Copy link
Contributor

I think I fixed the issue. The test was failing because the request did not have a url param set by chi. I fixed this by creating a function that wraps a request with the required url parameters

@niklastreml
Copy link
Contributor

Rest LGTM

@niklastreml niklastreml merged commit 2ea017e into main Nov 24, 2023
1 check passed
@lvlcn-t lvlcn-t deleted the fix/routing branch November 29, 2023 08:20
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
None yet
Development

Successfully merging this pull request may close these issues.

2 participants