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

- Modify WAF route in `SetWafRouter` to use root path "/"

- Remove path parameters from route configuration
- Align with previous changes to use query-based parameter retrieval
parent 8fe0bf9c
......@@ -11,7 +11,7 @@ func SetWafRouter(e *gin.Engine, clusterClientManager *utils.ClusterClientManage
v1 := e.Group("v1/api/waf")
wafController := controller.NewWafController(clusterClientManager, db, gatewayUrl)
v1.GET("/:region_code/:namespace/:gateway_name", wafController.Waf)
v1.GET("/", wafController.Waf)
// v1.POST("/gateway", wafController.GetWafGatewayInfo)
v1.POST("/", wafController.CreateWaf)
v1.PUT("mode", wafController.UpdateMode)
......
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