refactor validation for node creation

This commit is contained in:
Matthew R Kasun
2021-05-06 11:57:32 -04:00
parent 8ec8731eb5
commit 646f613b93
5 changed files with 375 additions and 255 deletions

View File

@@ -689,7 +689,7 @@ func updateNode(w http.ResponseWriter, r *http.Request) {
return
}
var nodechange models.Node
var nodechange models.NodeUpdate
// we decode our body request params
_ = json.NewDecoder(r.Body).Decode(&nodechange)