Update docs

This commit is contained in:
Tommi Reiman 2018-03-21 07:56:29 +02:00
parent f547576a44
commit f793a224c7

View file

@ -64,6 +64,17 @@ With provided path-parameters:
; :path-params {:id "1"}}
```
Path-parameters are automatically coerced into strings, with the help of (currently internal) Protocol `reitit.impl/IntoString`. It supports numbers, booleans, keywords and objects:
```clj
(r/match-by-name router ::user {:id 1})
; #Match{:template "/api/user/:id"
; :data {:name :user/user}
; :path "/api/user/1"
; :result nil
; :path-params {:id "1"}}
```
There is also a exception throwing version:
```clj