Skip to content

Commit

Permalink
Apply meta-container and route-middlewares in proper order
Browse files Browse the repository at this point in the history
Fixes #47
  • Loading branch information
Deraen committed Sep 11, 2014
1 parent 0b5079f commit 888ca60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compojure/api/meta.clj
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@
body `(do ~@body)
body (if (seq letks) `(letk ~letks ~body) body)
body (if (seq lets) `(let ~lets ~body) body)
body (if (seq parameters) `(meta-container ~parameters ~body) body)
body (if (seq middlewares) `(route-middlewares ~middlewares ~body ~arg) body)
body (if (seq parameters) `(meta-container ~parameters ~body) body)
body `(~method-symbol ~path ~arg-with-request ~body)
body (if responses `(body-coercer-middleware ~body ~responses) body)]
body))

0 comments on commit 888ca60

Please sign in to comment.