How do I add 'wrap-json' middleware to :duct.router/ataraxy?
You need to add the ^:example
meta tag to the route where you want the middleware to run
Something like this
(Notice the :middleware
:example
and the ^:example
meta tag)
And you also need to add :app.middleware/example
in your config edn so that it can be initiated
nevermind, wrap-json is breaking my app anyway.
@kevin.van.rooijen Thank you, that worked. Just needed to add the metadata.
You're welcome :)
What does it mean by non-module keys
in duct
?
https://github.com/duct-framework/duct/commit/c5683e42801f0141834267f7078539d9a00c6207#diff-8f9c1338eaf62f816d813b24392771cbR57
As for modules: >Modules are Integrant keywords that derive from :duct/module, and initiate into maps with two keys: :req and :fn. https://github.com/duct-framework/core#modules