mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2026-09-21 04:27:38 +08:00
16 lines
302 B
Go
16 lines
302 B
Go
package router
|
|
|
|
import (
|
|
"SamWaf/api"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type WebSocketRouter struct {
|
|
}
|
|
|
|
func (receiver *WebSocketRouter) InitWebSocketRouter(group *gin.RouterGroup) {
|
|
api := api.APIGroupAPP.WafWebSocketApi
|
|
router := group.Group("")
|
|
router.GET("/samwaf/ws", api.WebSocketMessageApi)
|
|
}
|