(Translated by https://www.hiragana.jp/)
create-resource-handler has hard-coded 404 response · Issue #89 · 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

create-resource-handler has hard-coded 404 response #89

Closed
ikitommi opened this issue May 22, 2018 · 0 comments
Closed

create-resource-handler has hard-coded 404 response #89

ikitommi opened this issue May 22, 2018 · 0 comments

Comments

@ikitommi
Copy link
Member

should be configurable. Maybe via route data / router options (so that setting it once would effect all places).

Setting nil is not good here, as it's in the branch where the route has matched -> returning nil would cause 406 (not-acceptable).

https://github.com/metosin/reitit/blob/master/modules/reitit-ring/src/reitit/ring.cljc#L116

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant