diff --git a/modules/reitit-core/src/reitit/spec.cljc b/modules/reitit-core/src/reitit/spec.cljc index 62595b2b..266683f3 100644 --- a/modules/reitit-core/src/reitit/spec.cljc +++ b/modules/reitit-core/src/reitit/spec.cljc @@ -38,7 +38,7 @@ ;; (s/def ::name keyword?) -(s/def ::handler fn?) +(s/def ::handler (s/or :fn fn? :var var?)) (s/def ::no-doc boolean?) (s/def ::conflicting boolean?) (s/def ::default-data