mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2025-12-06 14:59:18 +08:00
19 lines
493 B
Go
19 lines
493 B
Go
package router
|
|
|
|
import (
|
|
"SamWaf/api"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type WebSysInfoRouter struct {
|
|
}
|
|
|
|
func (receiver *WebSysInfoRouter) InitSysInfoRouter(group *gin.RouterGroup) {
|
|
api := api.APIGroupAPP.WafSysInfoApi
|
|
router := group.Group("")
|
|
router.GET("/samwaf/sysinfo/version", api.SysVersionApi)
|
|
router.GET("/samwaf/sysinfo/checkversion", api.CheckVersionApi)
|
|
router.GET("/samwaf/sysinfo/update", api.UpdateApi)
|
|
router.GET("/samwaf/sysinfo/announcement", api.GetAnnouncementApi)
|
|
}
|