数据结构优化
This commit is contained in:
@@ -56,6 +56,7 @@ func main() {
|
||||
// 博客路由
|
||||
api.GET("/posts", handlers.GetPosts)
|
||||
api.GET("/posts/:id", handlers.GetPost)
|
||||
api.GET("/posts/:id/recommendations", handlers.GetRecommendedPosts)
|
||||
|
||||
// 分类路由
|
||||
api.GET("/categories", handlers.GetCategories)
|
||||
|
||||
Reference in New Issue
Block a user