server/main.go
@@ -1,6 +1,7 @@ package main import ( "net/http" "os" "path/filepath" @@ -56,6 +57,14 @@ } } // ---------- 游戏目录展示页(公开,仅浏览不可下载) ---------- r.GET("/showcase", func(c *gin.Context) { c.File("./showcase/index.html") }) r.GET("/", func(c *gin.Context) { c.Redirect(http.StatusFound, "/showcase") }) // ---------- 管理后台 ---------- r.GET("/admin", func(c *gin.Context) { c.File("./admin/index.html")