ronda.routing.routed-middleware

active-routed-middleware

added in 0.2.0

(active-routed-middleware handler middleware-key wrap-fn & args)

Generate a handler that applies the middleware represented by `wrap-fn`
unless it is explicitly disabled for the currently routed endpoint.
This has to be used below `ronda.routing.middleware/wrap-routing`.

routed-middleware

(routed-middleware handler middleware-key wrap-fn & args)

Generate a handler that applies the middleware represented by `wrap-fn` only
if it is explicitly enabled for the currently routed endpoint.
This has to be used below `ronda.routing.middleware/wrap-routing`.