zen-lang / zen-web

1 stars 0 forks source link

cors middleware: match :options request in routing #1

Open carbon-hvze opened 1 year ago

carbon-hvze commented 1 year ago

https://github.com/zen-lang/zen-http/blob/master/src/zen/http/core.clj#L77

currently OPTIONS method is hardcoded in handle function

it is possible to match OPTIONS as GET for all the URIs in routing implementation

carbon-hvze commented 1 year ago

same applies for :HEAD request method