Created
November 13, 2012 23:21
-
-
Save jborden/4069100 to your computer and use it in GitHub Desktop.
Simple web app using wrap-json-body
This file contains hidden or 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 web-app.core | |
(:use | |
[compojure.core :only [defroutes GET POST]] | |
[ring.middleware.json] | |
;; ... remaining libs | |
[web-app.register :as register])) | |
(defroutes web-app | |
;; ... various routes | |
(POST "/register-new-user" {body :body} (register/handle-registration body))) | |
(def web-app | |
(-> web-app | |
(wrap-params) | |
(wrap-cookies) | |
(wrap-json-body {:keywords true}))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment