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?
i think that #reitit has a "custom DSL" that allows it.
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 š