add assertion for breaking change

This commit is contained in:
Caio Oliveira 2020-05-12 10:41:34 -04:00
parent a98fe22992
commit 5e3e552c80
No known key found for this signature in database
GPG key ID: 45C322D391B0CA40

View file

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