init: web_hgcg_server 初始化提交

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-10-27 16:44:55 +08:00
co-authored by Claude Opus 4.7
commit 189556e702
627 changed files with 126228 additions and 0 deletions
+22
View File
@@ -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)
}