From 4959d2b7cb1a717b427c236d3ee17944014f6287 Mon Sep 17 00:00:00 2001 From: lhy1024 Date: Thu, 12 Oct 2023 11:15:47 +0800 Subject: [PATCH] add some comments Signed-off-by: lhy1024 --- server/api/server.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(