package route

import (
	"xk-websocket/controller" // 替换为实际路径

	"github.com/gin-gonic/gin"
)

func SetupRoutes(router *gin.Engine, wsCtrl *controller.WebSocketController) {
	router.Use(gin.Recovery())

	router.GET("/ws", wsCtrl.HandleWebSocket)
	router.POST("/send", wsCtrl.SendMessageHandler)
	router.POST("/bind", wsCtrl.BindHandler)
	router.POST("/send-to-user", wsCtrl.SendToUserHandler)
	router.GET("/health", wsCtrl.HealthHandler)
}
