Skip to content

Instantly share code, notes, and snippets.

@dpwright
Created January 22, 2013 23:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dpwright/4599677 to your computer and use it in GitHub Desktop.
Save dpwright/4599677 to your computer and use it in GitHub Desktop.
Demonstrates how I'm passing the friend and dieter middlewares to Compojure's compojure.handler/site In my project.clj I have `:ring {:handler wedmgr.core/app}`
(def app
(-> (handler/site
(friend/authenticate app-routes
{:credential-fn users/authenticate
:workflows [(workflows/interactive-form)]}))
(dieter/asset-pipeline)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment