Commit 8e852171 authored by qiuqunfeng's avatar qiuqunfeng
Browse files

Refactor WAF route configuration

- Modify WAF route to use empty string for root path
- Remove commented-out route for gateway endpoint
- Simplify route configuration in `SetWafRouter`
parent 5e40a3e8
......@@ -11,8 +11,7 @@ func SetWafRouter(e *gin.Engine, clusterClientManager *utils.ClusterClientManage
v1 := e.Group("v1/api/waf")
wafController := controller.NewWafController(clusterClientManager, db, gatewayUrl)
v1.GET("/", wafController.Waf)
// v1.POST("/gateway", wafController.GetWafGatewayInfo)
v1.GET("", wafController.Waf)
v1.POST("/", wafController.CreateWaf)
v1.PUT("mode", wafController.UpdateMode)
v1.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