mirror of
https://github.com/metosin/reitit.git
synced 2025-12-16 16:01:11 +00:00
2.5 KiB
2.5 KiB
0.1.2-SNAPSHOT
reitit-core
- Better handling of
nilroutes - they filtered away from route syntax before routes are expanded:
(testing "nil routes are allowed ans stripped"
(is (= [] (r/routes (r/router nil))))
(is (= [] (r/routes (r/router [nil [nil] [[nil nil nil]]]))))
(is (= [["/ping" {} nil]] (r/routes (r/router [nil [nil] ["/ping"]]))))
(is (= [["/ping" {} nil]] (r/routes (r/router [[[nil [nil] ["/ping"]]]])))))
reitit-schema
- updated dependencies:
[metosin/schema-tools "0.10.3"] is available but we use "0.10.2"
reitit-swagger
- Fix Swagger-paths, by Kirill Chernyshov.
reitit-swagger-ui
- updated dependencies:
[metosin/jsonista "0.2.1"] is available but we use "0.2.0"
0.1.1 (2018-5-20)
reitit-core
linear-routernow works with unnamed catch-all parameters, e.g."/files/*"match-by-pathencodes parameters into strings using (internal)reitit.impl/IntoStringprotocol. Handles all of: strings, numbers, keywords, booleans, objects. Fixes #75.
(require '[reitit.core :as r])
(r/match-by-name
(r/router
["/coffee/:type" ::coffee])
::coffee
{:type :luwak})
;#Match{:template "/coffee/:type",
; :data {:name :user/coffee},
; :result nil,
; :path-params {:type "luwak"},
; :path "/coffee/luwak"}
reitit-ring
-
reitit.ring/default-handlernow works correctly with async ring -
new helper
reitit.ring/routerto compose routes outside of a router. -
reitit.ring/create-resource-handlerfunction to serve static routes. See docs. -
new dependencies:
[ring/ring-core "1.6.3"]
reitit-swagger
- New module to produce swagger-docs from routing tree, including
Coerciondefinitions. Works with both middleware & interceptors and Schema & Spec. See docs and example project.
reitit-swagger-ui
New module to server pre-integrated Swagger-ui. See docs.
- new dependencies:
[metosin/jsonista "0.2.0"]
[metosin/ring-swagger-ui "2.2.10"]
dependencies
[metosin/spec-tools "0.7.0"] is available but we use "0.6.1"
[metosin/schema-tools "0.10.2"] is available but we use "0.10.1"
0.1.0 (2018-2-19)
- First release