tested real proxmox connection
--> passed
This commit is contained in:
@@ -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})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user