mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2026-11-03 11:41:55 +08:00
17 lines
375 B
Go
17 lines
375 B
Go
package router
|
|
|
|
import (
|
|
"SamWaf/api"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type LogRouter struct {
|
|
}
|
|
|
|
func (receiver *LogRouter) InitLogRouter(group *gin.RouterGroup) {
|
|
logApi := api.APIGroupAPP.WafLogAPi
|
|
wafLogRouter := group.Group("")
|
|
wafLogRouter.POST("/samwaf/waflog/attack/list", logApi.GetListApi)
|
|
wafLogRouter.GET("/samwaf/waflog/attack/detail", logApi.GetDetailApi)
|
|
}
|