is this outdated: https://github.com/metosin/reitit/issues/84? Just updated to 0.5.2 and seems like it already is using a new UI at least
@tommi.jalkanen Still valid issue. The swagger-ui 3.0 support both 2.0 & 3.0 spec. reitit is still on 2.0 spec.
good to know, I'm interested in helping to push it forward during the summer
great! added a comment into the issue: https://github.com/metosin/reitit/issues/84#issuecomment-640593439
thanks for making it easier to get started :thumbsup:
Hello all I am using
(ring/ring-handler
(ring/router
[...
But I need to implement ring.middleware.cors
. Not sure where I can add this middleware into :data :middleware.. Any help greatly appreciatedI believe reitit now exposes an :options
mapping, so you can specify - per route - which options are supported.
@dharrigan hmm ok will take a look
<https://github.com/metosin/reitit/pull/148>
Here's another example <https://github.com/metosin/reitit/blob/7f7d6e22565362ac2b1c21a413865bab38438bac/perf-test/clj/reitit/cors_perf_test.clj>
So just noticing that the default options just returns 200
HTTP/1.1 200 OK
Allow: GET,OPTIONS
Content-Length: 0
Server: http-kit
Date: Mon, 08 Jun 2020 15:58:45 GMT
<Response body is empty>
This obviously is not enough with CORS