// Adapt add context to a middleware so it can be added to the chain.
Adapt add context to a middleware so it can be added to the chain.
// Adapt add context to a middleware so it can be added to the chain .
func Adapt(fn func(http.Handler) http.Handler) ContextMiddleware {
	return func(ctx *Context, h http.Handler) http.Handler {
		return fn(h)
	}
}
func Adapt ( fn func ( http . Handler ) http . Handler ) ContextMiddleware { return func ( ctx * Context , h http . Handler ) http . Handler { return fn ( h ) } }
Adapt add context to a middleware so it can be added to the chain.
Adapt add context to a middleware so it can be added to the chain .