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: normalize API paths properly for index files #5

Merged
merged 2 commits into from
Oct 17, 2022

Conversation

Angelmmiguel
Copy link
Contributor

@Angelmmiguel Angelmmiguel commented Oct 10, 2022

Fix the API paths when a file is an index.* one. This is a quick fix as we plan to refactor path management better in #3. I also added several unit tests to cover the different API path cases.

Closes #4

@Angelmmiguel Angelmmiguel added the 🐛 bug Something isn't working label Oct 10, 2022
@Angelmmiguel Angelmmiguel self-assigned this Oct 10, 2022
Copy link
Contributor

@ereslibre ereslibre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM given it's fixing an issue with index files. Thanks @Angelmmiguel!

Just a minor comment that reduces duplication when writing unit tests.

src/router.rs Show resolved Hide resolved
src/router.rs Show resolved Hide resolved
@Angelmmiguel Angelmmiguel merged commit bf64ef6 into main Oct 17, 2022
@ereslibre ereslibre deleted the 4-fix-index-routes branch November 9, 2022 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working cla-not-required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

index files are not properly mapped to API paths
3 participants