Make playback options endpoint public
This commit is contained in:
@@ -25,6 +25,7 @@ func SetupRouter(streamServer *stream.RTMPServer) *gin.Engine {
|
||||
r.POST("/api/login", Login)
|
||||
r.POST("/api/admin/login", AdminLogin)
|
||||
r.GET("/api/rooms/active", GetActiveRooms)
|
||||
r.GET("/api/rooms/:room_id/playback-options", GetRoomPlaybackOptions)
|
||||
r.GET("/api/rooms/:room_id/thumbnail", streamServer.HandleThumbnail)
|
||||
r.GET("/live/:room_id", streamServer.HandleHTTPFLV)
|
||||
|
||||
@@ -38,7 +39,6 @@ func SetupRouter(streamServer *stream.RTMPServer) *gin.Engine {
|
||||
authGroup.Use(AuthMiddleware())
|
||||
{
|
||||
authGroup.GET("/room/my", GetMyRoom)
|
||||
authGroup.GET("/rooms/:room_id/playback-options", GetRoomPlaybackOptions)
|
||||
authGroup.POST("/user/change-password", ChangePassword)
|
||||
|
||||
adminGroup := authGroup.Group("/admin")
|
||||
|
||||
Reference in New Issue
Block a user