Files
51dj_server/app/router/comment.go
T
2026-10-08 16:50:13 +08:00

21 lines
543 B
Go

package router
import (
"91jd-server/app/api/commentctrl"
"91jd-server/app/middleware/ipblock"
"91jd-server/app/middleware/limitHandler"
"91jd-server/common/constant"
"github.com/didip/tollbooth_gin"
"github.com/gin-gonic/gin"
)
func commentRouter(router *gin.RouterGroup) {
group := router.Group("/comment")
{
group.GET("/list", commentctrl.List)
group.GET("/info", commentctrl.Info)
group.POST("/send", ipblock.IPBlock(constant.BlockComment), limitHandler.FilterByIP(tollbooth_gin.LimitHandler(Lmt)), commentctrl.Send)
}
}