905086
2026-11-08 6cc9b12b81d184bb2df9dc68f93ca45c3d47d229
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")