Fork me on GitHub
#reitit
<
2020-06-08
>
koura07: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.

👍 3
koura11:06:23

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

koura13:06:57

thanks for making it easier to get started :thumbsup:

firstclassfunc15: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.

firstclassfunc15:06:23

@dharrigan hmm ok will take a look

dharrigan15:06:15

Here's another example

firstclassfunc15: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