mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2025-12-06 14:59:18 +08:00
19 lines
416 B
Go
19 lines
416 B
Go
package router
|
|
|
|
import (
|
|
"SamWaf/api"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type WafCommonRouter struct {
|
|
}
|
|
|
|
func (receiver *WafCommonRouter) InitWafCommonRouter(group *gin.RouterGroup) {
|
|
api := api.APIGroupAPP.WafCommonApi
|
|
router := group.Group("")
|
|
router.GET("/samwaf/export", api.ExportExcelApi)
|
|
router.POST("/samwaf/import", api.ImportExcelApi)
|
|
//心跳数据
|
|
router.GET("/samwaf/heartbeat", api.HeartbeatApi)
|
|
}
|