Last active
August 29, 2015 14:00
-
-
Save jdkealy/11129546 to your computer and use it in GitHub Desktop.
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
;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