From d53c85941624ac6efae14f3d1feb9398b5730641 Mon Sep 17 00:00:00 2001 From: a-wing <1@233.email> Date: Fri, 20 Dec 2024 21:29:37 +0800 Subject: [PATCH] fix whip whep 401 --- server/api/api.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/api/api.go b/server/api/api.go index 0ae6910..86a0353 100644 --- a/server/api/api.go +++ b/server/api/api.go @@ -49,10 +49,11 @@ func NewApi(rdb *redis.Client, secret string, live777Url string, live777Token st r.Post("/room/{roomId}/stream", handle.CreateRoomStream) r.Patch("/room/{roomId}/stream/{streamId}", handle.UpdateRoomStream) r.Delete("/room/{roomId}/stream/{streamId}", handle.DestroyRoomStream) - r.HandleFunc("/whip/{uuid}", handler(proxy, live777Url, live777Token)) - r.HandleFunc("/whep/{uuid}", handler(proxy, live777Url, live777Token)) }) + r.HandleFunc("/whip/{uuid}", handler(proxy, live777Url, live777Token)) + r.HandleFunc("/whep/{uuid}", handler(proxy, live777Url, live777Token)) + r.Post("/user/", handle.CreateUser) //r.Post("/room/{roomId}/message", handle.CreateMessage)