Skip to content

Commit

Permalink
Add wrap-context
Browse files Browse the repository at this point in the history
  • Loading branch information
zk committed Mar 1, 2015
1 parent 6fbc8fa commit 68d6286
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/clj/nsfw/http.clj
Expand Up @@ -247,3 +247,7 @@
{:store (ring.middleware.session.cookie/cookie-store
{:domain domain
:key key})})))

(defn wrap-context [h ctx]
(fn [r]
(h (assoc r :ctx ctx))))

0 comments on commit 68d6286

Please sign in to comment.