Fork me on GitHub
Michel A.14:07:55

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

    "/auth" ^:auth
     {[: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

☝️ 3

However I switched to reitit all together

🎉 3
Michel A.16:07:44

@kevin.van.rooijen thank you for your feedback.