mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2025-12-06 14:59:18 +08:00
22 lines
684 B
Go
22 lines
684 B
Go
package router
|
|
|
|
import (
|
|
"SamWaf/api"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type AntiCCRouter struct {
|
|
}
|
|
|
|
func (receiver *AntiCCRouter) InitAntiCCRouter(group *gin.RouterGroup) {
|
|
api := api.APIGroupAPP.WafAntiCCApi
|
|
router := group.Group("")
|
|
router.POST("/samwaf/wafhost/anticc/list", api.GetListApi)
|
|
router.GET("/samwaf/wafhost/anticc/detail", api.GetDetailApi)
|
|
router.POST("/samwaf/wafhost/anticc/add", api.AddApi)
|
|
router.GET("/samwaf/wafhost/anticc/del", api.DelAntiCCApi)
|
|
router.POST("/samwaf/wafhost/anticc/edit", api.ModifyAntiCCApi)
|
|
router.GET("/samwaf/wafhost/anticc/baniplist", api.GetBanIpListApi)
|
|
router.POST("/samwaf/wafhost/anticc/removebanip", api.RemoveCCBanIPApi)
|
|
}
|