fix: botched edit
This commit is contained in:
1 parent
d2e5b64ece
commit
b5710548b1
1 file changed
+8
@@ -1067,6 +1067,14 @@ func handleAdminRestart(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
func handleAdminSystemSummary(w http.ResponseWriter, r *http.Request) {
|
func handleAdminSystemSummary(w http.ResponseWriter, r *http.Request) {
|
||||||
if r.Method != http.MethodGet {
|
if r.Method != http.MethodGet {
|
||||||
|
http.Error(w, "method not allowed", http.StatusMethodNotAllowed)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
summary := getAdminSystemSummary()
|
||||||
|
w.Header().Set("Content-Type", "application/json")
|
||||||
|
json.NewEncoder(w).Encode(summary)
|
||||||
|
}
|
||||||
|
|
||||||
func handleAdminUsers(w http.ResponseWriter, r *http.Request) {
|
func handleAdminUsers(w http.ResponseWriter, r *http.Request) {
|
||||||
switch r.Method {
|
switch r.Method {
|
||||||
|
|||||||
Reference in new issue
Block a user