func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler {
	r.Group(func(r chi.Router) {
		r.Use(GetCurrentUserCtx)
		r.Get("/users/current", si.GetCurrentUser)
	})
	return r
}
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
package main
import (
	"context"
	"net/http"
	"github.com/go-chi/chi"
)
type ServerInterface interface {
	GetCurrentUser(w http.ResponseWriter, r *http.Request)
}
func GetCurrentUserCtx(next http.Handler) http.Handler {
	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		ctx := r.Context()
		ctx = context.WithValue(ctx, "bearerAuth.Scopes", []string{""})
		next.ServeHTTP(w, r.WithContext(ctx))
	})
}
func Handler(si ServerInterface) http.Handler {
	return HandlerFromMux(si, chi.NewRouter())
}