add remove server from networks with api. Add to default network by default.

This commit is contained in:
afeiszli
2021-04-06 19:13:34 -04:00
parent 5b955f2201
commit f3f2140f23
8 changed files with 230 additions and 64 deletions

View File

@@ -117,6 +117,7 @@ func ValidateNode(operation string, groupName string, node models.Node) error {
return err
}
func UpdateNode(nodechange models.Node, node models.Node) (models.Node, error) {
//Question: Is there a better way of doing this than a bunch of "if" statements? probably...
//Eventually, lets have a better way to check if any of the fields are filled out...