Fork me on GitHub
#ring-swagger
<
2016-06-06
>
bja18:06:42

is :middleware valid at the top level in api and defapi?

bja18:06:58

perhaps in the optional options to api?

bja18:06:41

i.e. I want to insert a middleware to run after compojure-api has went all its fancy request normalization middleware, but before the normal routing code takes place. in particular, I'd really like to not add the middleware to every top level context (a /v1/, /v2/, etc) if I can avoid it for DRY reasons

ikitommi19:06:36

@bja: it's not, but could be. For now, you can use the middleware route function

ikitommi19:06:45

I think a :middleware option would be good as it's already available at routing macros