Created
January 13, 2012 05:46
-
-
Save dcmoore/1604837 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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