Created
February 2, 2014 15:38
-
-
Save buwilliams/8770147 to your computer and use it in GitHub Desktop.
Hello World map to JSON
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 mybudgetbuddy-clj.core | |
(:use compojure.core | |
ring.middleware.json | |
ring.util.response) | |
(:require | |
[ring.adapter.jetty :as jetty])) | |
(defn index [request] (response {:say "hello world"})) | |
(defroutes main-routes | |
(get "/" [] (wrap-json-response index))) | |
(defn -main [] | |
(jetty/run-jetty main-routes | |
{:port 5000})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment