-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Disable middleware for some api #360
Comments
https://godoc.org/github.com/gorilla/mux#Router.PathPrefix
|
Might be good to note this in the docs. It is not entirely clear that |
Perhaps this behavior was changed after #431? |
Hi @bminer, allow me to share an approach to tackle a quite similar scenario... scenario solution
The trick is to define the fully qualified path "/api/v1/user-login" in the base route Well, this work OK for me and hope it helps! Greetings |
Hi, I need to deactivate middleware in some api.
For example, I need to disable the auth user registry and use auth for other operations after the registry.
But in mux using r.Use (), all routers require auth operations.
How can I fix this problem ?
The text was updated successfully, but these errors were encountered: