Commit 5d6557ae authored by qiuqunfeng's avatar qiuqunfeng
Browse files

Simplify WAF API route path configuration

- Remove leading slash from v2 WAF API route paths
- Ensure consistent route path formatting
parent 542e2a00
......@@ -24,7 +24,7 @@ func SetWafRouter(e *gin.Engine, clusterClientManager *utils.ClusterClientManage
v1.POST("debug/savecatagory", wafController.SaveRuleCategoryToDB)
v2 := e.Group("api/v2/containerSec/waf")
v2.GET("/attack/log/list", wafController.ListAttackLogs)
v2.GET("/rules", wafController.ListRules)
v2.PUT("/rules", wafController.UpdateRule)
v2.GET("attack/log/list", wafController.ListAttackLogs)
v2.GET("rules", wafController.ListRules)
v2.PUT("rules", wafController.UpdateRule)
}
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