This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-27
Channels
- # announcements (5)
- # beginners (267)
- # boot (1)
- # calva (37)
- # cider (11)
- # clara (10)
- # clj-kondo (24)
- # cljsrn (13)
- # clojars (1)
- # clojure (119)
- # clojure-europe (5)
- # clojure-italy (19)
- # clojure-nl (11)
- # clojure-spec (18)
- # clojure-uk (99)
- # clojurescript (44)
- # clojurex (57)
- # community-development (6)
- # cursive (13)
- # datomic (92)
- # duct (12)
- # fulcro (1)
- # graalvm (4)
- # jobs (1)
- # kaocha (6)
- # luminus (3)
- # lumo (9)
- # off-topic (20)
- # pathom (6)
- # re-frame (21)
- # reagent (2)
- # reitit (9)
- # remote-jobs (4)
- # shadow-cljs (32)
- # spacemacs (3)
You need to add the ^:example
meta tag to the route where you want the middleware to run
And you also need to add :app.middleware/example
in your config edn so that it can be initiated
@kevin.van.rooijen Thank you, that worked. Just needed to add the metadata.
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