This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-18
Channels
- # announcements (26)
- # beginners (107)
- # calva (26)
- # cider (55)
- # clj-kondo (7)
- # clojure (115)
- # clojure-europe (6)
- # clojure-houston (3)
- # clojure-italy (4)
- # clojure-nl (16)
- # clojure-norway (1)
- # clojure-uk (42)
- # clojuredesign-podcast (3)
- # clojurescript (47)
- # clojutre (4)
- # cursive (7)
- # datomic (75)
- # fulcro (1)
- # graalvm (3)
- # graphql (16)
- # jobs (1)
- # jobs-discuss (13)
- # keechma (1)
- # leiningen (19)
- # luminus (5)
- # off-topic (33)
- # pathom (16)
- # re-frame (76)
- # reitit (4)
- # ring (5)
- # shadow-cljs (86)
- # spacemacs (52)
- # tools-deps (43)
- # vim (7)
- # yada (1)
@jake142 using reitit-ring? you could recreate the ring- handler for each request (fn [] (ring/ring-handler ...))
so it gets fresh references for each run and the bindings should kick in.
I’m trying to make a key :authorize
required on all my routes.
my middleware looks like:
{:name ::authorization
:spec (s/keys :req-un [::authorize])
:compile ...
and my ring router is configured:
:validate reitit.ring.spec/validate
:spec (s/merge ::reitit.spec/default-data
(s/keys :opt-un [::description
::tags
::summary
::no-diffs
::middleware
::swagger]))
:reitit.spec/wrap spell/closed