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.
Do you mean something along the lines of "/cgi/:some-method"
?
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!