14 lines
289 B
Go
14 lines
289 B
Go
package router
|
|
|
|
import (
|
|
"videoweb/app/api/commentapi"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func commentRouter(r *gin.Engine) {
|
|
r.GET("/api/app/comment/list", commentapi.List)
|
|
r.POST("/api/app/comment/send", commentapi.SendComment)
|
|
r.POST("/api/app/comment/like/set", commentapi.SetLike)
|
|
}
|