This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-06
Channels
- # aws-lambda (6)
- # babashka (1)
- # beginners (204)
- # calva (10)
- # chlorine-clover (17)
- # cider (57)
- # cljs-dev (3)
- # cljsrn (3)
- # clojure (148)
- # clojure-bangladesh (1)
- # clojure-berlin (3)
- # clojure-europe (30)
- # clojure-france (1)
- # clojure-italy (4)
- # clojure-nl (5)
- # clojure-spec (4)
- # clojure-uk (14)
- # clojurescript (15)
- # code-reviews (8)
- # conjure (27)
- # data-science (9)
- # datomic (38)
- # duct (6)
- # figwheel-main (11)
- # fulcro (78)
- # helix (11)
- # jobs (1)
- # malli (18)
- # meander (22)
- # mount (4)
- # nrepl (3)
- # off-topic (93)
- # pathom (2)
- # pedestal (4)
- # re-frame (5)
- # reagent (6)
- # reitit (1)
- # ring-swagger (1)
- # sci (1)
- # shadow-cljs (19)
- # spacemacs (1)
- # sql (1)
- # tools-deps (76)
- # unrepl (1)
- # vim (5)
- # xtdb (8)
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 best way I could think of a solution is by doing something like :aaa/middleware2
:bbb/middleware1
☝️ 3
@kevin.van.rooijen thank you for your feedback.