From e6a7565745198d5600c8eb604da187427bce6d44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=96=87=E5=B3=B0?= Date: Fri, 15 May 2026 19:37:20 +0800 Subject: [PATCH] up --- http/http.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/http/http.go b/http/http.go index 9601d85..465fcca 100644 --- a/http/http.go +++ b/http/http.go @@ -93,6 +93,22 @@ func serveIndex(c *gin.Context) { c.String(http.StatusOK, indexHTML) } +// serveHome 主页(meshmap 占位) +func serveHome(c *gin.Context) { + c.Header("Content-Type", "text/html; charset=utf-8") + c.String(http.StatusOK, ` + +meshgo + +
+

meshmap

+

Mesh Network Map · 网格拓扑可视化

+ MQTT 管理面板 +
+ +`) +} + // handleStats 返回实时统计(JSON) func handleStats(c *gin.Context) { c.JSON(http.StatusOK, gin.H{