Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
19 lines
397 B
Go
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)
|
|
}
|
|
}
|