Files
SamWaf/router/waf_task_router.go
2025-01-08 08:14:34 +08:00

21 lines
591 B
Go

package router
import (
"SamWaf/api"
"github.com/gin-gonic/gin"
)
type WafTaskRouter struct {
}
func (receiver *WafTaskRouter) InitWafTaskRouter(group *gin.RouterGroup) {
api := api.APIGroupAPP.WafTaskApi
router := group.Group("")
router.POST("/samwaf/wafhost/task/add", api.AddApi)
router.POST("/samwaf/wafhost/task/list", api.GetListApi)
router.GET("/samwaf/wafhost/task/detail", api.GetDetailApi)
router.POST("/samwaf/wafhost/task/edit", api.ModifyApi)
router.GET("/samwaf/wafhost/task/del", api.DelApi)
router.GET("/samwaf/wafhost/task/manual_exec", api.ManualExecuteApi)
}