This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-20
Channels
- # aleph (2)
- # announcements (4)
- # aws (3)
- # beginners (141)
- # calva (9)
- # clj-kondo (1)
- # clojure (3)
- # clojure-boston (2)
- # clojure-brasil (1)
- # clojure-houston (1)
- # clojure-italy (4)
- # clojuredesign-podcast (1)
- # clojurescript (22)
- # cursive (2)
- # data-science (1)
- # emacs (26)
- # fulcro (22)
- # juxt (1)
- # off-topic (28)
- # onyx (3)
- # pedestal (4)
- # reagent (10)
- # reitit (6)
- # shadow-cljs (9)
- # spacemacs (2)
- # tools-deps (29)
- # yada (1)
In Pedestal examples, the keywords used for path-params are always non-namespaced (e.g. "/users/:id/posts/:post"
). Is it possible to use namespaced keywords (e.g. "/users/::id/posts/::post"
)? If it's possible, is it desirable?
Thanks!
Hey Folks, I’m using a pedestal service and defining my routes this way:
(def routes
#{["/" :get (conj common-interceptors `home-page)]
["/about" :get (conj common-interceptors `about-page)]
["/locaux" :post (conj common-interceptors `create-user)]})
But i would to have it in this format:
(def routes
#{["/" ^:interceptors [common-interceptors]
["/api"
["/home" :get `home-page]
["/about" :get `about-page]
["/locaux" :post `create-user]]]})
So far not success. Need your help guys 😄