Fork me on GitHub
#ring-swagger
<
2017-06-20
>
abarylko04:06:40

Sorry @hackeryarn that I'm late to the party

ikitommi12:06:46

with 2.0.0 there can be any number of Muuntaja intances in the mw-chain, first one that can handle the request does the work, rest are no-op. So, this should work with 2.0.0:

(def app-routes
   (routes
     ...
     (api ...)
     (api ...)
     ...))

(def app
   (-> api-routes (muuntaja.middleware/wrap-format))

hackeryarn22:06:21

@ikitommi I will have to keep that in mind. Unfortunately, I am still on 1.0, but that is a much cleaner solution.