refactor(router): remove post suggestion endpoint
All checks were successful
Build Backend / build (push) Successful in 3m12s
Build Backend / build-docker (push) Successful in 1m23s

Remove the /posts/suggest endpoint as part of route cleanup
following the post reference functionality implementation.
This commit is contained in:
lafay
2026-04-26 00:48:26 +08:00
parent 23d7f1151e
commit 02466603f9

View File

@@ -286,7 +286,6 @@ func (r *Router) setupRoutes() {
// 内链相关路由 // 内链相关路由
posts.GET("/:id/related", middleware.OptionalAuth(r.jwtService), r.postHandler.GetRelatedPosts) posts.GET("/:id/related", middleware.OptionalAuth(r.jwtService), r.postHandler.GetRelatedPosts)
posts.GET("/:id/refs", middleware.OptionalAuth(r.jwtService), r.postHandler.GetReferencedPosts) posts.GET("/:id/refs", middleware.OptionalAuth(r.jwtService), r.postHandler.GetReferencedPosts)
posts.GET("/suggest", middleware.OptionalAuth(r.jwtService), r.postHandler.Suggest)
posts.POST("/:id/ref-click", middleware.OptionalAuth(r.jwtService), r.postHandler.RecordRefClick) posts.POST("/:id/ref-click", middleware.OptionalAuth(r.jwtService), r.postHandler.RecordRefClick)
// 点赞 // 点赞