mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 00:11:11 +00:00
document repeated query param
This commit is contained in:
parent
5589328a3c
commit
33d155dc84
1 changed files with 4 additions and 1 deletions
|
|
@ -71,7 +71,10 @@
|
||||||
:parameters {:path [:map
|
:parameters {:path [:map
|
||||||
[:id :int]]
|
[:id :int]]
|
||||||
:query [:map
|
:query [:map
|
||||||
[:foo {:optional true} :keyword]]}}]])
|
[:foo {:optional true} :keyword]
|
||||||
|
;; ?repeated=a ==> ["a"]
|
||||||
|
;; ?repeated=a&repeated=b ==> ["a" "b"]
|
||||||
|
[:repeated [:vector {:decode/string #(if (string? %) [%] %)} :string]]]}}]])
|
||||||
|
|
||||||
(defn init! []
|
(defn init! []
|
||||||
(rfe/start!
|
(rfe/start!
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue