Skip to content

Instantly share code, notes, and snippets.

@jdkealy
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdkealy/11129546 to your computer and use it in GitHub Desktop.
Save jdkealy/11129546 to your computer and use it in GitHub Desktop.
;Request Payload
;{:title "ff"}
(ns clj-cms.core
(:use
[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]
)
(:require
[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}))
(-main)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment