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)