Phase 4.0: WebSocket chat and danmaku system implemented
This commit is contained in:
@@ -18,6 +18,9 @@ func SetupRouter() *gin.Engine {
|
||||
r.POST("/api/register", Register)
|
||||
r.POST("/api/login", Login)
|
||||
r.GET("/api/rooms/active", GetActiveRooms)
|
||||
|
||||
// WebSocket endpoint for live chat
|
||||
r.GET("/api/ws/room/:room_id", WSHandler)
|
||||
|
||||
// Protected routes (require JWT)
|
||||
authGroup := r.Group("/api")
|
||||
|
||||
Reference in New Issue
Block a user