hello all, is there a recommended way of ordering middleware in ataraxy ? I know that this is feasable at the level of the :duct/handler.root but I cannot manage to order correctly ataraxy root middleware. Ex : here I want the :auth middleware to apply before the ^:all-roles or the ^:admin one thanks
{:routes
{
"/auth" ^:auth
{"/files"
{[:post #{files}] ^:all-roles
[:my.project/create files]
["/" file-id] ^:admin
{:delete [:my.project/delete ^uuid file-id]}}}}}
The problem with ataraxy is dat it orders by reverse alphabetical naming
It disregards any nesting
The best way I could think of a solution is by doing something like :aaa/middleware2
:bbb/middleware1
However I switched to reitit all together
@kevin.van.rooijen thank you for your feedback.