From b5710548b10c13ae4ef807f700c7447a762a753e Mon Sep 17 00:00:00 2001 From: zwitschi Date: Thu, 6 Aug 2026 18:08:23 +0200 Subject: [PATCH] fix: botched edit --- backend/chat/src/main.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/backend/chat/src/main.go b/backend/chat/src/main.go index 99fa9ea..f088eb3 100644 --- a/backend/chat/src/main.go +++ b/backend/chat/src/main.go @@ -1067,6 +1067,14 @@ func handleAdminRestart(w http.ResponseWriter, r *http.Request) { func handleAdminSystemSummary(w http.ResponseWriter, r *http.Request) { 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) { switch r.Method {