Fork me on GitHub
#reitit
<
2022-05-09
>
batoms01:05:50

Is there a technical reason that reitit doesn't support a :name key for request method specific handlers so something like this would work:

(-> [["/" {:name :root
           :get {:name :show
                 :handler (fn [_])}
           :post {:name :create
                  :handler (fn [_])}}]]
    (r/router)
    ;; Currently this returns nil
    (r/match-by-name :show))

batoms01:05:28

I would be interested in adding it but I wanted to make sure it wasn't there for a reason.