|
|
@@ -30,11 +30,8 @@ func NewHandler(servicesList []string, handlerOpts ...HandlerOption) http.Handle
|
|
|
if len(servicesList) > 0 {
|
|
|
w.Header().Set("Content-Type", "application/json")
|
|
|
w.WriteHeader(200)
|
|
|
- list := []string{
|
|
|
- "api.kuban.Kuban",
|
|
|
- }
|
|
|
reply := map[string][]string{
|
|
|
- "services": list,
|
|
|
+ "services": servicesList,
|
|
|
}
|
|
|
json.NewEncoder(w).Encode(reply)
|
|
|
} else {
|