This repository has been archived on 2024-11-28. You can view files and clone it, but cannot push or open issues or pull requests.
Files
schisandra-cloud-album/router/modules/websocket_router.go
2024-08-19 00:14:01 +08:00

19 lines
365 B
Go

package modules
import (
"github.com/gin-gonic/gin"
"schisandra-cloud-album/api"
)
var websocketAPI = api.Api.WebsocketApi
func WebsocketRouter(router *gin.RouterGroup) {
group := router.Group("/ws")
{
group.GET("/socket", websocketAPI.NewSocketClient)
group.GET("/delete", websocketAPI.DeleteClient)
group.GET("/gws", websocketAPI.NewGWSServer)
}
}