Skip to content

Commit

Permalink
Remove /api/v2/ from StripPrefix
Browse files Browse the repository at this point in the history
Signed-off-by: Danny Kopping <[email protected]>
  • Loading branch information
JohnnyQQQQ authored and roidelapluie committed Nov 15, 2021
1 parent 143fd46 commit 4fbcae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4fbcae7

Please sign in to comment.