mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 08:21:11 +00:00
add assertion for breaking change
This commit is contained in:
parent
a98fe22992
commit
5e3e552c80
1 changed files with 2 additions and 0 deletions
|
|
@ -99,6 +99,8 @@
|
||||||
:compile compile-result
|
:compile compile-result
|
||||||
::default-options-endpoint default-options-endpoint}
|
::default-options-endpoint default-options-endpoint}
|
||||||
opts)]
|
opts)]
|
||||||
|
(assert (not (contains? opts ::default-options-handler))
|
||||||
|
"Option `::default-options-handler` is deprecated. Use `::default-options-endpoint` instead.")
|
||||||
(r/router data opts))))
|
(r/router data opts))))
|
||||||
|
|
||||||
(defn routes
|
(defn routes
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue