Fork me on GitHub

Hey guys, a question about how to use this library: I was looking through some example code and saw that there were api route definitions that looked like

(GET* "/current-user" {current-user :current-user}
                  (if current-user
                    (ok (user/sanitize-for-public current-user))
, specifically the args appeared to be some kind of destructuring. But when I look at where this api route is called, there are no args given. In the official example repo, all of the args lists are empty. Where does it take the argument to destructure from?


does anyone have an example using ring-swagger and http-kit? specifically the async/channel based server


@sooheon it is the compojure destructuring syntax, described in here:


@jstokes ring-swagger doesn't care about the server, we are mostly running on http-kit. Not sure I understood the question.