mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 00:11:11 +00:00
CHANGELOG
This commit is contained in:
parent
f793a224c7
commit
97a00f57f1
1 changed files with 21 additions and 0 deletions
21
CHANGELOG.md
21
CHANGELOG.md
|
|
@ -1,3 +1,24 @@
|
||||||
|
## 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"}
|
||||||
|
```
|
||||||
|
|
||||||
## 0.1.0 (2018-2-19)
|
## 0.1.0 (2018-2-19)
|
||||||
|
|
||||||
* First release
|
* First release
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue