(Translated by https://www.hiragana.jp/)
Support not-found-handler with path in resource handler (#464) by karimarttila · Pull Request #471 · metosin/reitit · GitHub
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

Support not-found-handler with path in resource handler (#464) #471

Merged
merged 1 commit into from
Feb 19, 2021

Conversation

karimarttila
Copy link
Contributor

No description provided.

@miikka miikka merged commit ff55f85 into master Feb 19, 2021
miikka pushed a commit that referenced this pull request Feb 26, 2021
PR #471 aimed to fix issue #464. However, the change was slightly
backwards-incompatible, since it made the file and resource handlers use
the default 404 handler when mounted outside of the router. The previous
behavior was to return nil in that case.

This patch restores the previous behavior and clarifies that `:path`
option can be used only when the file/resource handler is mounted
outside of a router.
@opqdonut opqdonut deleted the resource-handler-issue branch March 3, 2023 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants