Skip to content
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

feat: allow multiple global middlewares #343

Closed
wants to merge 1 commit into from

Conversation

rizerkrof
Copy link
Collaborator

fixes #284

@rizerkrof rizerkrof self-assigned this Jan 10, 2025
// AllowedOrigins: []string{"*"},
// AllowedMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"},
// AllowedHeaders: []string{"*"},
// AllowCredentials: true,
// }).Handler)
// )
func WithCorsMiddleware(corsMiddleware func(http.Handler) http.Handler) func(*Server) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mind changing your commit to BREAKING: .... So the changelog is more explicit on the change?

@EwenQuim EwenQuim mentioned this pull request Jan 12, 2025
@EwenQuim
Copy link
Member

EwenQuim commented Jan 13, 2025

Closed in favor of #345.

Thanks Edouard!

@EwenQuim EwenQuim closed this Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a WithGlobalMiddlewares server option to replace WithCorsMiddleware
3 participants