Fork me on GitHub

Hey, does anyone have an example how to mix site and api routes in one app? Preferably with ataraxy. I was looking for a "meta middleware" (basically a stack of pre-configured middlewares) in module.web to attach to the routes as meta data.


You could start with providing someting like and for :duct.core/handler. There was an example of mixing the api and site configs

:duct.module.web/site {}
:duct.core/handler {:middleware [#ig/ref :duct.middleware.web/format]}
:duct.middleware.web/format {}

❤️ 4