Skip to content

Instantly share code, notes, and snippets.

@jdkealy jdkealy/gist:11129546
Last active Aug 29, 2015

What would you like to do?
;Request Payload
;{:title "ff"}
(ns clj-cms.core
[ring.adapter.jetty :only [run-jetty]]
[compojure.core :only [defroutes GET POST DELETE]]
[ring.middleware.params :only [wrap-params]]
[ring.middleware file file-info stacktrace reload]
[compojure.route :as route]
[cheshire.core :as cc]
[compojure.handler :as handler]
[datomic.api :as d]
; my app stuff
[clj-cms.todos :as todos]
[clj-cms.config :as config]))
(defroutes routes
; i have a request payload that
(POST "/todos.json" {title :title} (str "The title is " title)))
(def app (wrap-reload ( wrap-params routes)))
(defn -main []
(run-jetty app {:port 3001}))
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.