road.go 333 B

12345678910111213
  1. package routers
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "hongze/hongze_yb/controller/road"
  5. "hongze/hongze_yb/middleware"
  6. )
  7. func InitRoad(r *gin.Engine) {
  8. rGroup := r.Group("api/road").Use(middleware.Token(), middleware.CheckBaseAuth())
  9. rGroup.GET("/video/list", road.VideoList)
  10. rGroup.POST("/video/play_log", road.VideoPlayLog)
  11. }