tested real proxmox connection

--> passed
This commit is contained in:
Philipp
2026-06-12 14:25:34 +02:00
parent 1bfc46f03b
commit 452d1fb8b3
9 changed files with 271 additions and 42 deletions
+4 -1
View File
@@ -125,6 +125,9 @@ func (h Handler) ListTenantAudit(w http.ResponseWriter, r *http.Request) {
writeError(w, http.StatusInternalServerError, "audit_list_failed")
return
}
if entries == nil {
entries = []Entry{}
}
writeJSON(w, http.StatusOK, map[string]any{
"data": entries,
@@ -141,4 +144,4 @@ func writeJSON(w http.ResponseWriter, status int, body any) {
func writeError(w http.ResponseWriter, status int, message string) {
writeJSON(w, status, map[string]string{"error": message})
}
}