From 6cc9b12b81d184bb2df9dc68f93ca45c3d47d229 Mon Sep 17 00:00:00 2001
From: 905086 <k2049@qq.com>
Date: Sun, 08 Nov 2026 17:31:58 +0800
Subject: [PATCH] feat(server): 添加游戏目录公开浏览页并更新重启脚本提示

---
 server/main.go |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/server/main.go b/server/main.go
index d219814..44ec722 100644
--- a/server/main.go
+++ b/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")

--
Gitblit v1.10.0