diff options
author | Carlo Zancanaro <carlo@clearboxsystems.com.au> | 2013-09-02 00:56:29 +1000 |
---|---|---|
committer | Carlo Zancanaro <carlo@clearboxsystems.com.au> | 2013-09-02 00:56:29 +1000 |
commit | 523e00ccda6559c57cce87e488ecfcb722d1fc19 (patch) | |
tree | 71496206a04d596077edd5375d184cd36c408b11 /src | |
parent | ef4627e39f9746fe27238c862294df94ab4e164b (diff) |
Handle the case of the top-level route being a var
Diffstat (limited to 'src')
-rw-r--r-- | src/reverse_routing/core.clj | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reverse_routing/core.clj b/src/reverse_routing/core.clj index 2907fb4..4299eba 100644 --- a/src/reverse_routing/core.clj +++ b/src/reverse_routing/core.clj @@ -8,7 +8,7 @@ (defn wrap-reverse-routing [handler & {:keys [root] :or {:root ""}}] (fn [request] - (binding [*lookup-route* (->> handler meta ::lookup) + (binding [*lookup-route* (->> handler deref-if-var meta ::lookup) *root* root] (handler request)))) |