mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2025-12-06 14:59:18 +08:00
21 lines
591 B
Go
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)
|
|
}
|