feat: 添加了根据关注的feed流

This commit is contained in:
Leon
2025-12-19 19:20:52 +08:00
parent d2f40acf4d
commit 8ee2025951
5 changed files with 96 additions and 0 deletions

View File

@@ -97,5 +97,10 @@ func SetRouter(db *gorm.DB) *gin.Engine {
feedGroup.POST("/listLatest", feedHandler.ListLatest)
feedGroup.POST("/listLikesCount", feedHandler.ListLikesCount)
}
protectedFeedGroup := feedGroup.Group("")
protectedFeedGroup.Use(middleware.JWTAuth(accountRepository))
{
protectedFeedGroup.POST("/listByFollowing", feedHandler.ListByFollowing)
}
return r
}