2018-03-21 05:56:50 +00:00
|
|
|
## 0.1.1-SNAPSHOT
|
|
|
|
|
|
|
|
|
|
### `reitit-core`
|
|
|
|
|
|
|
|
|
|
* `match-by-path` encodes parameters into strings using (internal) `reitit.impl/IntoString` protocol. Handles all of: numbers, keywords, booleans, uuids. Fixes [#75](https://github.com/metosin/reitit/issues/75).
|
|
|
|
|
|
|
|
|
|
```clj
|
|
|
|
|
(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/luwa"}
|
|
|
|
|
```
|
|
|
|
|
|
2018-02-19 05:44:29 +00:00
|
|
|
## 0.1.0 (2018-2-19)
|
2017-08-07 11:08:39 +00:00
|
|
|
|
2018-02-19 05:44:29 +00:00
|
|
|
* First release
|