FIx mult panel server

This commit is contained in:
2026-05-11 21:52:07 -03:00
parent 67d56b2a76
commit 1ad8b868ab
4 changed files with 353 additions and 6 deletions

View File

@@ -1698,6 +1698,9 @@ func handleStats(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusMethodNotAllowed)
return
}
if proxyManagedServerFromRequest(w, r, statsStore, "/api/stats", nil, "") {
return
}
stats := getCurrentStats()
w.Header().Set("Content-Type", "application/json")
_ = json.NewEncoder(w).Encode(stats)