Skip to content

Instantly share code, notes, and snippets.

@dmozzy
Created April 10, 2012 13:35
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 dmozzy/2351413 to your computer and use it in GitHub Desktop.
Save dmozzy/2351413 to your computer and use it in GitHub Desktop.
Blog #3 Routing changes
(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