mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-26 11:06:23 +00:00
feat: 添加远程地址字段到评论功能,支持记录用户的远程地址
This commit is contained in:
@ -14,7 +14,7 @@ func registerCommentRoutes(group *route.RouterGroup) {
|
||||
commentGroup.POST("/c", commentController.CreateComment)
|
||||
commentGroup.PUT("/c/:id", commentController.UpdateComment)
|
||||
commentGroup.DELETE("/c/:id", commentController.DeleteComment)
|
||||
commentGroup.PUT("/c/:id/react", commentController.ReactComment) // 暂时先不写
|
||||
commentGroup.PUT("/c/:id/react", commentController.ReactComment)
|
||||
commentGroupWithoutAuth.GET("/c/:id", commentController.GetComment)
|
||||
commentGroupWithoutAuth.GET("/list", commentController.GetCommentList)
|
||||
}
|
||||
|
Reference in New Issue
Block a user