mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-26 09:02:57 +08:00
bug squashin
This commit is contained in:
parent
eaa493f3d4
commit
20f8bc8214
1 changed files with 1 additions and 2 deletions
|
@ -146,10 +146,9 @@ func getNetworks(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
networks := RemoveComms(allnetworks)
|
|
||||||
functions.PrintUserLog(r.Header.Get("user"), "fetched networks.", 2)
|
functions.PrintUserLog(r.Header.Get("user"), "fetched networks.", 2)
|
||||||
w.WriteHeader(http.StatusOK)
|
w.WriteHeader(http.StatusOK)
|
||||||
json.NewEncoder(w).Encode(networks)
|
json.NewEncoder(w).Encode(allnetworks)
|
||||||
}
|
}
|
||||||
|
|
||||||
func RemoveComms(networks []models.Network) []models.Network {
|
func RemoveComms(networks []models.Network) []models.Network {
|
||||||
|
|
Loading…
Reference in a new issue