metosin / reitit

A fast data-driven routing library for Clojure/Script
https://cljdoc.org/d/metosin/reitit/
Eclipse Public License 1.0
1.4k stars 252 forks source link

How about supporting uppercased route HTTP in Ring handler method keywords? #658

Open gerdint opened 6 months ago

gerdint commented 6 months ago

I.e:

["/api-url" {:POST api/do-this
             :parameters { ... }
             :summary "Do this"}]

This would make the method keyword stand out among the other route keywords (and also map to the HTTP spec better I think).

ikitommi commented 6 months ago

interesting idea. But this would be a breaking change unless the lowercase keys would also be supported.

gerdint commented 6 months ago

Yes the intention was to have both be supported.