init: web_hgcg_server 初始化提交
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"time"
|
||||
"videoweb/app/api/home"
|
||||
"videoweb/app/middleware/templatecache"
|
||||
"videoweb/app/service/videoser"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func videoRouter(r *gin.Engine) {
|
||||
r.GET("/richtext/:id/", templatecache.WithCache(time.Minute*1), home.RichtextApi)
|
||||
|
||||
r.GET("/h5/m3u8/*key", videoser.GetM3U8Ex)
|
||||
r.GET("/h5/vtt/*key", videoser.GetVTTEx)
|
||||
r.GET("/enkey/", videoser.Enkey)
|
||||
r.GET("/newenkey/", videoser.NewEnkey)
|
||||
r.GET("/lsjenkey", videoser.LsjEnkey)
|
||||
|
||||
r.GET("/urlRedirect/", templatecache.WithCache(time.Minute*1), home.UrlRedirect)
|
||||
}
|
||||
Reference in New Issue
Block a user