mirror of
https://github.com/metosin/reitit.git
synced 2025-12-18 00:41:12 +00:00
Interceptors diff context, not request
This commit is contained in:
parent
3f910c25f8
commit
02308b582d
2 changed files with 2 additions and 2 deletions
|
|
@ -61,7 +61,7 @@
|
||||||
{:status 200
|
{:status 200
|
||||||
:body {:total (+ x y)}})}}]]]
|
:body {:total (+ x y)}})}}]]]
|
||||||
|
|
||||||
{;:reitit.middleware/transform dev/print-request-diffs
|
{:reitit.middleware/transform dev/print-context-diffs
|
||||||
:data {:coercion reitit.coercion.spec/coercion
|
:data {:coercion reitit.coercion.spec/coercion
|
||||||
:muuntaja m/instance
|
:muuntaja m/instance
|
||||||
:middleware [;; query-params & form-params
|
:middleware [;; query-params & form-params
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
(and leave (stages :leave)) (assoc :leave (handle name :leave))
|
(and leave (stages :leave)) (assoc :leave (handle name :leave))
|
||||||
(and error (stages :error)) (assoc :error (handle name :error))))
|
(and error (stages :error)) (assoc :error (handle name :error))))
|
||||||
|
|
||||||
(defn print-request-diffs
|
(defn print-context-diffs
|
||||||
"A interceptor chain transformer that adds a context diff printer between all interceptors"
|
"A interceptor chain transformer that adds a context diff printer between all interceptors"
|
||||||
[chain]
|
[chain]
|
||||||
(reduce
|
(reduce
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue