refactor(routes):

- keep install-mode root redirect to /install and add tests covering install root redirect and install page serving
- change root backend handler from Any("/") to POST("/") so GET / can consistently serve the SPA after install

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
line-6000
2026-04-25 18:48:28 +08:00
parent 485059f60e
commit 95879e33d4
140 changed files with 285 additions and 197 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ import (
// RegisterRoute 路由注册
func RegisterRoute(e *echo.Echo) {
e.Any("/", func(c echo.Context) error {
e.POST("/", func(c echo.Context) error {
return c.String(http.StatusOK, "hello epusdt, https://github.com/GMwalletApp/epusdt")
})