Created
December 11, 2012 11:44
-
-
Save rasputnik/4257968 to your computer and use it in GitHub Desktop.
this is throwing a stacktrace starting with : "Exception in thread "main" java.lang.IllegalArgumentException: Parameter declaration wrap-json-response should be a vector"
This file contains 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
(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