diff --git a/server/api/server.go b/server/api/server.go index 04f115eb18dc..9b8fa538fbb0 100644 --- a/server/api/server.go +++ b/server/api/server.go @@ -52,6 +52,11 @@ func NewHandler(_ context.Context, svr *server.Server) (http.Handler, apiutil.AP // "/schedulers", http.MethodGet // "/schedulers/{name}", http.MethodPost // "/schedulers/diagnostic/{name}", http.MethodGet + // “/hotspot/regions/read”, http.MethodGet + // “/hotspot/regions/write”, http.MethodGet + // “/hotspot/regions/history, http.MethodGet + // “/hotspot/stores”, http.MethodGet + // “/hotspot/buckets, http.MethodGet // Following requests are **not** redirected: // "/schedulers", http.MethodPost // "/schedulers/{name}", http.MethodDelete @@ -77,7 +82,7 @@ func NewHandler(_ context.Context, svr *server.Server) (http.Handler, apiutil.AP prefix+"/hotspot", scheapi.APIPathPrefix+"/hotspot", mcs.SchedulingServiceName, - []string{http.MethodPost, http.MethodGet, http.MethodDelete}), + []string{http.MethodGet}), // because the writing of all the meta information of the scheduling service is in the API server, // we should not post and delete the scheduler directly in the scheduling service. serverapi.MicroserviceRedirectRule(