✨ use websocket
This commit is contained in:
17
router/modules/websocket_router.go
Normal file
17
router/modules/websocket_router.go
Normal 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)
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user