View gist:98c3e44581e54988bc09
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
;; Testando somente o server side funciona OK. | |
curl -X POST -d "foo=bar" http://localhost:10555/posts | |
Params: {:foo "bar"}% | |
;; Client Side | |
(def ^:private meths | |
{:get "GET" | |
:put "PUT" | |
:post "POST" | |
:delete "DELETE"}) |