Last active
March 30, 2023 23:18
-
-
Save oitee/6081afc85bdef3b1d1d10d4789138102 to your computer and use it in GitHub Desktop.
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
;; curl -d 'id="1234"' -X POST 'http://localhost:65535/?name=otee' | |
(defn handler-that-needs-keyword-params | |
[{params :params}] | |
;; the following will return this response map: | |
;; {:body "Hello otee your ID is: 1234" ...} | |
(ring.util.response/response "Hello" (:name params) " your ID is: " (:id params))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment