This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-08
Channels
- # 100-days-of-code (1)
- # announcements (7)
- # beginners (63)
- # cljs-dev (39)
- # clojure (78)
- # clojure-dev (40)
- # clojure-italy (4)
- # clojure-nl (22)
- # clojure-russia (5)
- # clojure-spec (5)
- # clojurescript (60)
- # cursive (8)
- # datomic (6)
- # emacs (1)
- # figwheel-main (53)
- # fulcro (19)
- # jobs-discuss (11)
- # mount (1)
- # off-topic (3)
- # om (1)
- # pedestal (9)
- # philosophy (1)
- # re-frame (19)
- # reagent (4)
- # reitit (5)
- # shadow-cljs (66)
- # tools-deps (64)
Built a demo of using reitit-router (with all the add-ons) with Pedestal: https://github.com/ikitommi/reitit-pedestal-swagger
e.g. used the default-interceptor chain with empty routes and replaced the last interceptor in the chain (the router) with a custom one. Feels bit hacky.
Does the router interceptor have a qualified name? Could search for the router in the interceptor list and swap it, instead of assuming last position?
@dadair sounds like a good idea, it seems to have a name :io.pedestal.http.route/router
. Easy to do, but are there any existing helpers to swap a interceptor by name?
Looking at the codex I don’t think so, and I’d doubt it given that it’s a pure data transformation.
thanks @dadair, much better (https://github.com/ikitommi/reitit-pedestal-swagger/blob/master/src/example/router.clj#L34-L36)