瀏覽代碼

视频列表接口增加权限控制

xiexiaoyuan 2 年之前
父節點
當前提交
3790c51dc6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      routers/community.go

+ 1 - 1
routers/community.go

@@ -22,7 +22,7 @@ func InitCommunity(r *gin.Engine) {
 	rGroup.POST("/question/audio/log", community.AddAudioLog)
 	rGroup.POST("/question/audio/log", community.AddAudioLog)
 	// 视频社区
 	// 视频社区
 	noAuthGroup := r.Group("api/community").Use(middleware.Token())
 	noAuthGroup := r.Group("api/community").Use(middleware.Token())
-	noAuthGroup.GET("/video/list", community.VideoList)
+	rGroup.GET("/video/list", community.VideoList)
 	noAuthGroup.POST("/video/play_log", community.VideoPlayLog)
 	noAuthGroup.POST("/video/play_log", community.VideoPlayLog)
 
 
 	//点赞、吐槽、评论
 	//点赞、吐槽、评论