Fork me on GitHub
#reitit
<
2018-02-11
>
ikitommi20:02:21

Added some details to the upcoming swagger/openapi -support: https://github.com/metosin/reitit/issues/19

ikitommi20:02:20

It introduces a new concept: Middleware (Or Interceptor) that doesn’t participate in the request processing.

ikitommi20:02:47

It just defines specs for the new keys that are available for the routes (which have the middleware mounted).

ikitommi20:02:19

I’m starting to think wether Middleware should be called something like Feature?

ikitommi20:02:19

actually, the one swagger-thingie can be shared in both middleware- & interceptor pipelines as it doesn’t define wrap, enter or leave. so, we can call it reitit.swagger/swagger-feature. Lovely.