Remove `/api/v2/` from `StripPrefix`
Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
This commit is contained in:
parent
143fd46467
commit
4fbcae7d05
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue