Using the list (https://clojuredocs.org/clojure.core/list) data structure to define the main middleware:
Before
(ring/router
["/" {:handler h-fn}]
:data {:middleware (cons m1 [m2 m3 m4])})
Works as expected
After
(ring/router
["/" {:handler h-fn
:middleware []}]
:data {:middleware (cons m1 [m2 m3 m4])})
Now the middleware chain is executed out of order
FYI I didn't verify this, but I am fairly confident this happens or something like this happens
Using the list (https://clojuredocs.org/clojure.core/list) data structure to define the main middleware:
Before
Works as expected
After
Now the middleware chain is executed out of order
FYI I didn't verify this, but I am fairly confident this happens or something like this happens