mirror of
https://github.com/prometheus/alertmanager.git
synced 2026-02-05 15:45:34 +01:00
Remove /api/v2/ from StripPrefix
Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
This commit is contained in:
committed by
Julien Pivotto
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
|
||||
|
||||
Reference in New Issue
Block a user