Created
January 1, 2017 11:47
-
-
Save code-shoily/076c22e9e71d04414100b608bec02c64 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
(defmacro GET | |
[app route handler] | |
`(do | |
(with-decorator | |
(.route ~app ~route :methods ["GET"]) | |
~handler))) | |
(defmacro POST | |
[app route handler] | |
`(do | |
(with-decorator | |
(.route ~app ~route :methods ["POST"]) | |
~handler))) | |
(defmacro ONLY | |
[app route methods handler] | |
`(do | |
(with-decorator | |
(.route ~app ~route :methods ~methods) | |
~handler))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment