Files
web_hgdjc_server/app/router/comment.go
T
2026-11-07 10:46:18 +08:00

19 lines
397 B
Go

package router
import (
"videoweb/app/api/commentapi"
"github.com/gin-gonic/gin"
)
func commentRouter(r *gin.Engine) {
r.POST("/comment/send/", commentapi.SendComment)
group := r.Group("/api/app/comment")
{
group.POST("/send", commentapi.SendComment)
group.POST("/send/", commentapi.SendComment)
group.GET("/list", commentapi.List)
group.POST("/like/set", commentapi.SetLike)
}
}