From 028342c63abc5602e2b315a155516de41e4b2e4a Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 16 Apr 2026 00:12:10 +0000 Subject: [PATCH] fix: update JSON response key for whitelist entries in ListWhitelists handler --- backend/internal/api/handlers/crowdsec_handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/internal/api/handlers/crowdsec_handler.go b/backend/internal/api/handlers/crowdsec_handler.go index bea6782e..f79532bc 100644 --- a/backend/internal/api/handlers/crowdsec_handler.go +++ b/backend/internal/api/handlers/crowdsec_handler.go @@ -2710,7 +2710,7 @@ func (h *CrowdsecHandler) ListWhitelists(c *gin.Context) { c.JSON(http.StatusInternalServerError, gin.H{"error": "failed to list whitelist entries"}) return } - c.JSON(http.StatusOK, gin.H{"entries": entries}) + c.JSON(http.StatusOK, gin.H{"whitelist": entries}) } // AddWhitelist adds a new IP or CIDR to the CrowdSec whitelist.