mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2025-12-06 14:59:18 +08:00
19 lines
372 B
Go
19 lines
372 B
Go
package router
|
|
|
|
import (
|
|
"SamWaf/api"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type WafFileRouter struct {
|
|
}
|
|
|
|
func (receiver *WafFileRouter) InitWafFileRouter(group *gin.RouterGroup) {
|
|
fileApi := api.APIGroupAPP.WafFileApi
|
|
router := group.Group("/samwaf/file")
|
|
{
|
|
router.GET("/data_files", fileApi.GetDataFilesApi)
|
|
router.GET("/delete_by_id", fileApi.DeleteFileByIdApi)
|
|
}
|
|
}
|