mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 00:11:11 +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
|
||||
:body {:total (+ x y)}})}}]]]
|
||||
|
||||
{;:reitit.middleware/transform dev/print-request-diffs
|
||||
{:reitit.middleware/transform dev/print-context-diffs
|
||||
:data {:coercion reitit.coercion.spec/coercion
|
||||
:muuntaja m/instance
|
||||
:middleware [;; query-params & form-params
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@
|
|||
(and leave (stages :leave)) (assoc :leave (handle name :leave))
|
||||
(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"
|
||||
[chain]
|
||||
(reduce
|
||||
|
|
|
|||
Loading…
Reference in a new issue