Skip to content

Instantly share code, notes, and snippets.

@mhaemmerle
Created September 2, 2012 20:24
Show Gist options
  • Save mhaemmerle/3604243 to your computer and use it in GitHub Desktop.
Save mhaemmerle/3604243 to your computer and use it in GitHub Desktop.
wrap-ring-handler
(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