cluster list
This commit is contained in:
@@ -65,6 +65,15 @@ func CreateClusterHandler(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
}
|
||||
|
||||
func ListUserClusters(w http.ResponseWriter, r *http.Request) {
|
||||
// var cluster Cluster
|
||||
_, clusterList := argohandler.ListUserClusters("userid")
|
||||
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
json.NewEncoder(w).Encode(clusterList)
|
||||
|
||||
}
|
||||
|
||||
// func RegsiterClusterRoute(r *mux.Router) {
|
||||
// r.HandleFunc("/createcluster", createClusterHandler).Methods("POST", "OPTIONS")
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user