瀏覽代碼

add route to execute to prevent conflict

Ajay Tripathy 4 年之前
父節點
當前提交
ee6c36d5e8
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      pkg/cmd/costmodel/costmodel.go

+ 1 - 0
pkg/cmd/costmodel/costmodel.go

@@ -26,6 +26,7 @@ func Execute(opts *CostModelOpts) error {
 
 
 	rootMux := http.NewServeMux()
 	rootMux := http.NewServeMux()
 	a.Router.GET("/healthz", Healthz)
 	a.Router.GET("/healthz", Healthz)
+	a.Router.GET("/allocation/summary", a.ComputeAllocationHandlerSummary)
 	rootMux.Handle("/", a.Router)
 	rootMux.Handle("/", a.Router)
 	rootMux.Handle("/metrics", promhttp.Handler())
 	rootMux.Handle("/metrics", promhttp.Handler())
 	handler := cors.AllowAll().Handler(rootMux)
 	handler := cors.AllowAll().Handler(rootMux)