diamondap/ring-sample — pull request #1 by isaksky (2012-08-17 19:40:31+00:00)
Title: Make compojure.handler/site the outermost request wrapper

compojure.handler/site should be the outermost request wrapper, because other middleware (e.g., friend, an authentication library) usually depends on the stuff it provides, like sessions params, etc.

Here are a couple of sites that do it this way:

https://github.com/ato/clojars-web/blob/master/src/clojars/web.clj#L165

https://github.com/cemerick/friend/blob/master/test/test_friend/mock_app.clj#L112