post和index一样加入标签符号
This commit is contained in:
@@ -37,6 +37,7 @@ func SetupRoutes(r *gin.Engine) {
|
||||
{
|
||||
// 公开 API(支持可选认证,以便管理员查看所有文章)
|
||||
api.GET("/posts", middleware.OptionalAuth(), backend.GetPosts)
|
||||
api.GET("/dashboard/stats", middleware.OptionalAuth(), backend.GetDashboardStats)
|
||||
api.GET("/posts/:id", middleware.OptionalAuth(), backend.GetPost)
|
||||
api.GET("/categories", backend.GetCategories)
|
||||
api.GET("/categories/:id", backend.GetCategory)
|
||||
|
||||
Reference in New Issue
Block a user