mirror of
https://github.com/metosin/reitit.git
synced 2026-01-11 01:29:50 +00:00
One inspiration for stripping/adding slashes automatically in reitit was https://github.com/julienschmidt/httprouter which can handle any number of slashes. Make the implementation a bit better by stripping as many slashes as there are. This still doesn't support redirecting from a multiple-slash URI to a single-slash URI. That could be handled as a special case, but in the end I think the correct solution would be to convert both the router and request URIs to a canonical form before matching. Then the question of slashes is just a question of formatting. |
||
|---|---|---|
| .. | ||
| chain.clj | ||
| coercion_test.cljc | ||
| core_test.cljc | ||
| impl_test.cljc | ||
| interceptor_test.cljc | ||
| middleware_test.cljc | ||
| ring_coercion_test.cljc | ||
| ring_spec_test.cljc | ||
| ring_test.cljc | ||
| spec_test.cljc | ||
| swagger_test.clj | ||