doc the option

This commit is contained in:
Tommi Reiman 2022-04-05 21:22:36 +03:00
parent b282e32b73
commit 40bf16857f

View file

@ -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)