Skip to content

Commit

Permalink
add some comments
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <[email protected]>
  • Loading branch information
lhy1024 committed Oct 12, 2023
1 parent f6e209d commit 4959d2b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server/api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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(
Expand Down

0 comments on commit 4959d2b

Please sign in to comment.