This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-27
Channels
- # admin-announcements (1)
- # announcements (11)
- # babashka (17)
- # beginners (26)
- # calva (6)
- # cider (2)
- # circleci (1)
- # clojure (41)
- # clojure-dev (1)
- # clojure-europe (31)
- # clojure-france (2)
- # clojure-italy (10)
- # clojure-nl (7)
- # clojure-norway (5)
- # clojure-spec (15)
- # clojure-uk (42)
- # clojurescript (4)
- # code-reviews (12)
- # conjure (10)
- # datalog (2)
- # datascript (15)
- # datomic (37)
- # emacs (1)
- # events (5)
- # fulcro (19)
- # jobs (1)
- # jobs-discuss (9)
- # kaocha (2)
- # luminus (14)
- # meander (4)
- # membrane (39)
- # off-topic (26)
- # other-languages (2)
- # re-frame (13)
- # reitit (6)
- # rewrite-clj (39)
- # sci (6)
- # shadow-cljs (33)
- # test-check (15)
- # vrac (17)
- # xtdb (7)
Is there a way to declare ‘wildcard’ routes, that match any method? I have a route that just routes requests to a CGI script and I’d like to avoid creating duplicate routes for every method the CGI script supports.
No, I meant HTTP methods. I have a route on the form ["/cgi/*foo" {:get ..., :post ..., :put ..., :delete ..., :options ..., :patch ..., :head ...}]
where every method works the exact same way (just passes the request along to the CGI script).
I’d like to be able to do something like ["/cgi/*foo" {:* ...}]
to avoid code duplication.
["/cgi/*foo" {:handler ...}]
this will catch all the methodshttps://cljdoc.org/d/metosin/reitit/0.5.5/doc/ring/ring-router#request-method-based-routing from here
Perfect, thanks!