Просмотр исходного кода

remove clustername ep from this diff

AjayTripathy 7 лет назад
Родитель
Сommit
b2b0e31f59
1 измененных файлов с 0 добавлено и 9 удалено
  1. 0 9
      main.go

+ 0 - 9
main.go

@@ -91,14 +91,6 @@ func (a *Accesses) CostDataModelRange(w http.ResponseWriter, r *http.Request, ps
 	w.Write(wrapData(data, err))
 }
 
-func (a *Accesses) ClusterName(w http.ResponseWriter, _ *http.Request, _ httprouter.Params) {
-	w.Header().Set("Content-Type", "application/json")
-	w.Header().Set("Access-Control-Allow-Origin", "*")
-
-	data, err := a.Cloud.ClusterName()
-	w.Write(wrapData(data, err))
-}
-
 func Healthz(w http.ResponseWriter, _ *http.Request, _ httprouter.Params) {
 	w.WriteHeader(200)
 	w.Header().Set("Content-Length", "0")
@@ -212,7 +204,6 @@ func main() {
 	router.GET("/costDataModel", a.CostDataModel)
 	router.GET("/costDataModelRange", a.CostDataModelRange)
 	router.GET("/healthz", Healthz)
-	router.GET("/clusterName", a.ClusterName)
 	router.POST("/refreshPricing", a.RefreshPricingData)
 
 	rootMux := http.NewServeMux()