Skip to content

Instantly share code, notes, and snippets.

@pingles
Created March 2, 2011 20:42
Show Gist options
  • Save pingles/851702 to your computer and use it in GitHub Desktop.
Save pingles/851702 to your computer and use it in GitHub Desktop.
Using hoptoad ring middleware
(use 'ring.adapter.jetty)
(use 'ring.middleware.params)
(use 'ring.middleware.stacktrace)
(use 'clj-hoptoad.ring)
(defn app [req]
{:status 200
:headers {"Content-Type" "text/html"}
:body (throw (Exception. "Testing"))})
(run-jetty (-> app
(wrap-params)
(wrap-hoptoad "APIKEY")
(wrap-stacktrace))
{:port 8080})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment