We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5bc5ec commit 072a8a1Copy full SHA for 072a8a1
middleware/echo/echo.go
@@ -12,8 +12,7 @@ import (
12
// Handler returns a Echo compatible middleware from a Middleware factory instance.
13
// The first handlerID argument is the same argument passed on Middleware.Handler method.
14
func Handler(handlerID string, m middleware.Middleware) echo.MiddlewareFunc {
15
- // Create a dummy handler to wrap the middleware chain of Gin, this way Middleware
16
- // interface can wrap the Gin chain.
+ // Wrap wrapping handler with echo's WrapMiddleware helper
17
return echo.WrapMiddleware(func(next http.Handler) http.Handler {
18
return m.Handler(handlerID, next)
19
})
0 commit comments