mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 16:57:51 +08:00
bug squashin
This commit is contained in:
@@ -146,10 +146,9 @@ func getNetworks(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
}
|
||||
}
|
||||
networks := RemoveComms(allnetworks)
|
||||
functions.PrintUserLog(r.Header.Get("user"), "fetched networks.", 2)
|
||||
w.WriteHeader(http.StatusOK)
|
||||
json.NewEncoder(w).Encode(networks)
|
||||
json.NewEncoder(w).Encode(allnetworks)
|
||||
}
|
||||
|
||||
func RemoveComms(networks []models.Network) []models.Network {
|
||||
|
Reference in New Issue
Block a user