Commit f400f08b authored by qiuqunfeng's avatar qiuqunfeng
Browse files

Update WAF API routing to add specific endpoints for attack log retrieval,...

Update WAF API routing to add specific endpoints for attack log retrieval, enhancing clarity and functionality in log proxy handling.
parent 9618b19f
...@@ -27,7 +27,9 @@ func SetWafRouter(e *gin.Engine, clusterClientManager *utils.ClusterClientManage ...@@ -27,7 +27,9 @@ func SetWafRouter(e *gin.Engine, clusterClientManager *utils.ClusterClientManage
v2 := e.Group("api/v2/containerSec/waf") v2 := e.Group("api/v2/containerSec/waf")
wafLogController := controller.NewWafLogController(regionUrlMap) wafLogController := controller.NewWafLogController(regionUrlMap)
v2.Any("attack/log", wafLogController.WafLogProxy) v2.GET("attack/log/list", wafLogController.WafLogProxy)
v2.GET("attack/log/details", wafLogController.WafLogProxy)
v2.GET("attack/log/rspPkg", wafLogController.WafLogProxy)
// v2.GET("attack/log/list", wafController.ListAttackLogs) // v2.GET("attack/log/list", wafController.ListAttackLogs)
// v2.GET("attack/log/details", wafController.GetAttackLogDetails) // v2.GET("attack/log/details", wafController.GetAttackLogDetails)
// v2.GET("attack/log/rspPkg", wafController.GetAttackLogRsp) // v2.GET("attack/log/rspPkg", wafController.GetAttackLogRsp)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment