Root admin stuff

This commit is contained in:
Adam Ierymenko 2019-09-30 09:32:00 -07:00
commit b0d222768a
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3
16 changed files with 217 additions and 46 deletions

View file

@ -356,6 +356,9 @@ func createAPIServer(basePath string, node *Node) (*http.Server, error) {
if queriedID == 0 {
apiSendObj(out, req, http.StatusBadRequest, nil)
} else {
var r Root
if apiReadObj(out, req, &r) == nil {
}
}
} else if req.Method == http.MethodGet || req.Method == http.MethodHead {
roots := node.Roots()