Skip to content

Instantly share code, notes, and snippets.

@dcmoore
Created January 13, 2012 05:46
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 dcmoore/1604837 to your computer and use it in GitHub Desktop.
Save dcmoore/1604837 to your computer and use it in GitHub Desktop.
(defn my-middleware [handler]
(fn [req]
(handler (assoc req :new-key "Hey Guys!"))))
(def app-handler
(my-middleware
(fn [req]
{:body (:new-key req)
:headers {}
:status 200})))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment