فهرست منبع

fix:change route

Roc 2 سال پیش
والد
کامیت
265621a588
1فایلهای تغییر یافته به همراه5 افزوده شده و 3 حذف شده
  1. 5 3
      routers/community.go

+ 5 - 3
routers/community.go

@@ -23,9 +23,11 @@ func InitCommunity(r *gin.Engine) {
 	noAuthGroup := r.Group("api/community").Use(middleware.Token())
 	noAuthGroup.GET("/video/list", community.VideoList)
 	noAuthGroup.POST("/video/play_log", community.VideoPlayLog)
+
+	//点赞、吐槽、评论
 	rGroup.POST("/set_like_or_roast", community.SetLikeOrRoast)
 	rGroup.POST("/comment", community.Comment)
 	rGroup.POST("/comment/delete", community.DeleteComment)
-	rGroup.GET("/need_anonymousUser_tips", community.GetNeedCommentAnonymousUserTips)
-	rGroup.POST("/set_anonymousUser_tips", community.SetCommentAnonymousUserTips)
-}
+	rGroup.GET("/need_anonymous_user_tips", community.GetNeedCommentAnonymousUserTips)
+	rGroup.POST("/set_anonymous_user_tips", community.SetCommentAnonymousUserTips)
+}