You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ChiServerOptions takes a slice of middleware, []MiddleWareFunc. When these are applied they're chained in the order of the slice, meaning that the middleware executes last to first.
I'd expect them to be executed first to last, as most other Go middleware chains do (by iterating through the slice in reverse order).
Looks like chi's backwards chaining logic is written in their chain function here. Should be trivial to update in the chi-middleware template. I'll throw a quick patch together.
Activity
jazware commentedon Oct 14, 2022
Looks like
chi's backwards chaining logic is written in theirchainfunction here. Should be trivial to update in the chi-middleware template. I'll throw a quick patch together.jazware commentedon Oct 22, 2022
This should now be supported in the next release (including this PR) using the following options in your config YAML:
This issue can be closed (but I don't have permissions to close it).