Skip to content

Commit

Permalink
fix whip whep 401
Browse files Browse the repository at this point in the history
  • Loading branch information
a-wing committed Dec 20, 2024
1 parent 409ad2a commit d53c859
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d53c859

Please sign in to comment.