From 4fbcae7d0590a314ceb67221cbe784fb7670b9dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Philippe=20Qu=C3=A9m=C3=A9mer?= Date: Thu, 11 Nov 2021 22:00:37 +0100 Subject: [PATCH] Remove `/api/v2/` from `StripPrefix` Signed-off-by: Danny Kopping --- api/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/api.go b/api/api.go index 1fddb521..f50ebee1 100644 --- a/api/api.go +++ b/api/api.go @@ -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