微信小程序\推拉流
This commit is contained in:
@@ -310,6 +310,10 @@ func main() {
|
||||
}
|
||||
})
|
||||
|
||||
// WebSocket 推流路由(不经过 authGroup,避免中间件干扰 WebSocket 升级)
|
||||
// 路径:GET /api/call/ws-push?stream_id=xxx&user_id=xxx&room_id=xxx&token=xxx
|
||||
r.GET("/api/call/ws-push", api.WSPushHandler)
|
||||
|
||||
// 步骤9: 注册HTTP API路由
|
||||
apiGroup := r.Group("/api")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user