Last active
August 29, 2015 14:03
-
-
Save nicolamontecchio/fee0d214f04f48d1b099 to your computer and use it in GitHub Desktop.
clojure - compojure - ring
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
;; route destructuring | |
(POST "/login" {post-params :params session :session} (page-login-post post-params session)) | |
;; session update | |
(assoc (response (html "whatever...") :session (assoc session :userid uid))) | |
;; show request map: | |
(GET "/profile" reqmap (str reqmap)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment