Allow for adding/deleting profiles, add a bunch of sanity checks for config changes.

This commit is contained in:
2021-09-30 17:04:12 +09:30
parent bf127f6cc2
commit 89b142a150
5 changed files with 102 additions and 34 deletions

View File

@@ -161,8 +161,8 @@ func ConfigRESTHandler(w http.ResponseWriter, r *http.Request) {
w.Write(errorResB)
return
}
conf.WriteConfig()
}
conf.WriteConfig()
b, _ := json.Marshal(conf)
w.Write(b)
}