mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2025-12-06 14:59:18 +08:00
22 lines
710 B
Go
22 lines
710 B
Go
package router
|
|
|
|
import (
|
|
"SamWaf/api"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type BlockUrlRouter struct {
|
|
}
|
|
|
|
func (receiver *BlockUrlRouter) InitBlockUrlRouter(group *gin.RouterGroup) {
|
|
api := api.APIGroupAPP.WafBlockUrlApi
|
|
router := group.Group("")
|
|
router.POST("/samwaf/wafhost/urlblock/list", api.GetListApi)
|
|
router.GET("/samwaf/wafhost/urlblock/detail", api.GetDetailApi)
|
|
router.POST("/samwaf/wafhost/urlblock/add", api.AddApi)
|
|
router.GET("/samwaf/wafhost/urlblock/del", api.DelBlockUrlApi)
|
|
router.POST("/samwaf/wafhost/urlblock/edit", api.ModifyBlockUrlApi)
|
|
router.POST("/samwaf/wafhost/urlblock/batchdel", api.BatchDelBlockUrlApi)
|
|
router.POST("/samwaf/wafhost/urlblock/delall", api.DelAllBlockUrlApi)
|
|
}
|