metosin / reitit

A fast data-driven routing library for Clojure/Script

Home Page:https://cljdoc.org/d/metosin/reitit/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

gerdint opened this issue · comments

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).

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

Yes the intention was to have both be supported.