mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2025-12-06 14:59:18 +08:00
22 lines
846 B
Go
22 lines
846 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)
|
|
router.POST("/samwaf/wafhost/sensitive/batch/del", SensitiveRouterApi.BatchDelSensitiveApi)
|
|
router.POST("/samwaf/wafhost/sensitive/delall", SensitiveRouterApi.DelAllSensitiveApi)
|
|
}
|