use websocket

This commit is contained in:
landaiqing
2024-08-17 20:01:03 +08:00
parent e8fbff7e7f
commit 57964d39af
11 changed files with 280 additions and 25 deletions

View File

@@ -0,0 +1,17 @@
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)
}
}