Created
July 31, 2016 19:36
-
-
Save jacoelho/38e4ca6488ed991fc87d1ef3f1edae8d to your computer and use it in GitHub Desktop.
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
| (defroutes app-routes | |
| (GET "/" [] (get-all-todo)) | |
| (POST "/" {params :params} (create-todo params)) | |
| (context "/:id" [id] | |
| (GET "/" [] (get-todo id)) | |
| (PUT "/" {params :params} (update-todo id params)) | |
| (DELETE "/" [] (delete-todo id))) | |
| (not-found "sorry")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment