Initial commit: web_hghl_server
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"videoweb/web/api/web_video"
|
||||
"videoweb/web/middleware/apilimitHandler"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func wbVideoDataRouter(r *gin.Engine) {
|
||||
limiter := apilimitHandler.NewRouteHourlyLimiter(100)
|
||||
router := r.Group("/wbapi/hjsq")
|
||||
{
|
||||
router.Use(limiter.Middleware())
|
||||
router.GET("/hottag", web_video.GetVideoPlayData)
|
||||
router.GET("/ipstat", web_video.GetIpStatData)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user