Fork me on GitHub
#reitit
<
2020-06-08
>
tommi.jalkanen07:06:09

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

ikitommi08:06:05

@tommi.jalkanen Still valid issue. The swagger-ui 3.0 support both 2.0 & 3.0 spec. reitit is still on 2.0 spec.

ikitommi08:06:05

@tommi.jalkanen Still valid issue. The swagger-ui 3.0 support both 2.0 & 3.0 spec. reitit is still on 2.0 spec.

tommi.jalkanen11:06:23

good to know, I'm interested in helping to push it forward during the summer

tommi.jalkanen13:06:57

thanks for making it easier to get started 👍

gary00115:06:26

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 appreciated

dharrigan15:06:48

I believe reitit now exposes an :options mapping, so you can specify - per route - which options are supported.

gary00115:06:23

@dharrigan hmm ok will take a look

dharrigan15:06:15

Here's another example

gary00115:06:31

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