-
Notifications
You must be signed in to change notification settings - Fork 7.9k
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
Question about middleware #1169
Comments
Yes, after execution works, but not the way you've done it :) func before() gin.HandlerFunc {
return func(c *gin.Context) {
fmt.Println("before")
c.Next()
}
}
func after() gin.HandlerFunc {
return func(c *gin.Context) {
c.Next()
fmt.Println("after")
}
} As you can see, everything depends on the placement of the |
There's a before/after request sample in README.md. In |
That`s works for me thank you guys |
Hello all, i would like to ask is it possible to set middleware after handler executing.
Because in code example i provide middleware "after" does not working. Please tell me if i do something
wrong
The text was updated successfully, but these errors were encountered: