Created
September 2, 2012 20:24
-
-
Save mhaemmerle/3604243 to your computer and use it in GitHub Desktop.
wrap-ring-handler
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
(defroutes routes | |
(GET "/" [] (index)) | |
(GET "/events" [] (wrap-aleph-handler events-handler))) | |
(def app | |
(-> handler | |
wrap-error-handling)) | |
(defn start | |
[port] | |
(start-http-server (wrap-ring-handler app) {:port port})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment