mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2025-12-06 14:59:18 +08:00
20 lines
665 B
Go
20 lines
665 B
Go
package router
|
|
|
|
import (
|
|
"SamWaf/api"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type SensitiveRouter struct {
|
|
}
|
|
|
|
func (receiver *SensitiveRouter) InitSensitiveRouter(group *gin.RouterGroup) {
|
|
SensitiveRouterApi := api.APIGroupAPP.WafSensitiveApi
|
|
router := group.Group("")
|
|
router.POST("/samwaf/wafhost/sensitive/list", SensitiveRouterApi.GetListApi)
|
|
router.GET("/samwaf/wafhost/sensitive/detail", SensitiveRouterApi.GetDetailApi)
|
|
router.POST("/samwaf/wafhost/sensitive/add", SensitiveRouterApi.AddApi)
|
|
router.GET("/samwaf/wafhost/sensitive/del", SensitiveRouterApi.DelSensitiveApi)
|
|
router.POST("/samwaf/wafhost/sensitive/edit", SensitiveRouterApi.ModifySensitiveApi)
|
|
}
|