feat: 移除WebRTC房间状态API,优化路由设置

This commit is contained in:
MatrixSeven
2025-09-11 15:55:10 +08:00
parent 4b31e76488
commit 50d30f23bf
3 changed files with 37 additions and 9 deletions

View File

@@ -51,10 +51,8 @@ func setupMiddleware(r *chi.Mux) {
func setupAPIRoutes(r *chi.Mux, h *handlers.Handler) {
// WebRTC信令WebSocket路由
r.Get("/api/ws/webrtc", h.HandleWebRTCWebSocket)
r.Get("/ws/webrtc", h.HandleWebRTCWebSocket)
// WebRTC房间API
r.Post("/api/create-room", h.CreateRoomHandler)
r.Get("/api/room-info", h.WebRTCRoomStatusHandler)
r.Get("/api/webrtc-room-status", h.WebRTCRoomStatusHandler)
}