Created
April 10, 2012 13:35
-
-
Save dmozzy/2351413 to your computer and use it in GitHub Desktop.
Blog #3 Routing changes
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
(GET "/tasks" [] | |
(json-response {:tasks (get-all-tasks)})) | |
(POST "/task" {params :params} | |
(json-response {:taskId (persist/save-task params)})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment