Remove `/api/v2/` from `StripPrefix`

Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
This commit is contained in:
Jean-Philippe Quémémer 2021-11-11 22:00:37 +01:00 committed by Julien Pivotto
parent 143fd46467
commit 4fbcae7d05
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ func (api *API) Register(r *route.Router, routePrefix string) *http.ServeMux {
// limitHandler below).
mux.Handle(
apiPrefix+"/api/v2/",
api.limitHandler(http.StripPrefix(apiPrefix+"/api/v2", api.v2.Handler)),
api.limitHandler(http.StripPrefix(apiPrefix, api.v2.Handler)),
)
return mux