Skip to content

Instantly share code, notes, and snippets.

@rasputnik rasputnik/core.clj
Created Dec 11, 2012

Embed
What would you like to do?
this is throwing a stacktrace starting with : "Exception in thread "main" java.lang.IllegalArgumentException: Parameter declaration wrap-json-response should be a vector"
(ns tyrekick.core
(:use ring.adapter.jetty ring.util.response ring.middleware.json)
(:gen-class))
(defn handler
"dead simple to get benchmark reqs/sec"
[request]
(response {:message "hello nasty"}))
(defn app
(wrap-json-response handler))
(defn -main [port]
(run-jetty app {:port (Integer. port)}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.