mirror of
https://github.com/metosin/reitit.git
synced 2025-12-21 10:01:11 +00:00
doc the option
This commit is contained in:
parent
b282e32b73
commit
40bf16857f
1 changed files with 3 additions and 1 deletions
|
|
@ -22,7 +22,9 @@
|
|||
|
||||
(defn match-by-path
|
||||
"Given routing tree and current path, return match with possibly
|
||||
coerced parameters. Return nil if no match found."
|
||||
coerced parameters. Return nil if no match found.
|
||||
|
||||
:on-coercion-error - a sideeffecting fn of `match exception -> nil`"
|
||||
([router path] (match-by-path router path nil))
|
||||
([router path {:keys [on-coercion-error]}]
|
||||
(let [uri (.parse Uri path)
|
||||
|
|
|
|||
Loading…
Reference in a new issue