-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Reverse the order of the middleware when they applied in gorilla/mux implementation #842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reverse the order of the middleware when they applied in gorilla/mux implementation #842
Conversation
stevenh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Thanks for this - looks like this was because I copy-pasta'd Chi's server, and was resolved there in #787 |
jamietanna
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good - only requested change is that similar to the Chi PR, we add a compatibility option to allow folks to opt-in to these?
|
@jamietanna |
jamietanna
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for the changes 🙌
Only thought I have is whether we should rename the flag:
-apply-gorilla-mux-middleware-first-to-last
+apply-gorilla-middleware-first-to-last
Given the configuration to generate gorilla/mux servers is gorilla-server?
|
Understood. Since |
…implementation (oapi-codegen#842) * Reverse the order of the middleware when they apopted in gorilla/mux implementation * Add config to keep compatibility * Rename option by omitting
…implementation (oapi-codegen#842) * Reverse the order of the middleware when they apopted in gorilla/mux implementation * Add config to keep compatibility * Rename option by omitting
…implementation (oapi-codegen#842) * Reverse the order of the middleware when they apopted in gorilla/mux implementation * Add config to keep compatibility * Rename option by omitting
resolve #841