Category "go-chi"

Unable to read "request.Body" in Go Chi router [duplicate]

Consider the following code in main/entry function r := chi.NewRouter() r.Use(middleware.RequestID) r.Use(middleware.RealIP) r

How to get route inside middleware go-chi

To check authorization i need to know the route inside the authorization middleware. I checked docs from go-chi and did it that way: func Authenticator(next htt