This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-28
Channels
- # aatree (3)
- # alda (8)
- # avi (21)
- # beginners (37)
- # boot (193)
- # cbus (1)
- # cider (29)
- # cljs-dev (8)
- # cljsjs (3)
- # cljsrn (20)
- # clojure (76)
- # clojure-dev (13)
- # clojure-miami (20)
- # clojure-portugal (2)
- # clojure-russia (220)
- # clojure-sg (2)
- # clojurebridge (5)
- # clojurescript (94)
- # community-development (14)
- # conf-proposals (110)
- # core-async (12)
- # cursive (12)
- # datascript (6)
- # datomic (14)
- # dirac (72)
- # emacs (49)
- # hoplon (86)
- # jobs (33)
- # jobs-discuss (1)
- # ldnclj (6)
- # lein-figwheel (1)
- # off-topic (56)
- # om (139)
- # onyx (29)
- # pedestal (17)
- # proton (23)
- # re-frame (45)
- # reagent (35)
- # ring-swagger (4)
- # test-check (1)
- # testing (8)
- # yada (11)
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))
(ok)))
, 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: https://github.com/weavejester/compojure/wiki/Destructuring-Syntax