pedestal

stacktracer 2019-07-20T20:06:50.002800Z

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?

souenzzo 2019-07-21T14:27:29.005800Z

i think that #reitit has a "custom DSL" that allows it.

stacktracer 2019-07-21T21:07:36.006300Z

Thanks!

Daouda 2019-07-20T21:35:19.005700Z

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 šŸ˜„