Added new clear function-calls for the recent-stored-events and as well the permanent-block list

This commit is contained in:
2026-02-21 17:23:33 +01:00
parent c85d51edd6
commit 3e06cfc1ab
12 changed files with 138 additions and 11 deletions

View File

@@ -80,6 +80,7 @@ func RegisterRoutes(r *gin.Engine, hub *Hub) {
// Internal API calls for advanced actions
api.GET("/advanced-actions/blocks", ListPermanentBlocksHandler)
api.DELETE("/advanced-actions/blocks", ClearPermanentBlocksHandler)
api.POST("/advanced-actions/test", AdvancedActionsTestHandler)
// Internal API calls for Fail2ban-UI server management
@@ -95,6 +96,7 @@ func RegisterRoutes(r *gin.Engine, hub *Hub) {
// Internal API calls to get the stats of the bans
api.GET("/events/bans", ListBanEventsHandler)
api.DELETE("/events/bans", ClearBanEventsHandler)
api.GET("/events/bans/stats", BanStatisticsHandler)
api.GET("/events/bans/insights", BanInsightsHandler)