Skip to content

Commit

Permalink
Added multipart options to handler/site function
Browse files Browse the repository at this point in the history
  • Loading branch information
weavejester committed Jul 17, 2011
1 parent b80d003 commit f10e9c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/compojure/handler.clj
Expand Up @@ -35,8 +35,9 @@
- wrap-keyword-params
A map of options may also be provided. These keys are provided:
:session - a map of session middleware options"
:session - a map of session middleware options
:multipart - a map of multipart-params middleware options"
[routes & [opts]]
(-> (api routes)
(wrap-multipart-params)
(with-opts wrap-multipart-params (:multipart opts))
(with-opts wrap-session (:session opts))))

0 comments on commit f10e9c1

Please sign in to comment.