refactor: share splash screen project wide

This commit is contained in:
2025-10-26 13:34:55 +01:00
parent b7255b5576
commit d92d8abc77
7 changed files with 19 additions and 279 deletions
+4
View File
@@ -11,6 +11,7 @@ import (
"os"
"os/exec"
"path/filepath"
shared "plg-mudics/shared"
"strings"
"github.com/labstack/echo/v4"
@@ -42,6 +43,9 @@ func StartWebServer(v string) {
e.GET("/", indexRoute)
e.GET("/sse", sseRoute)
e.GET("/splash", func(ctx echo.Context) error {
return ctx.HTML(http.StatusOK, shared.SplashScreenTemplate)
})
apiGroup := e.Group("/api")
apiGroup.GET("/ping", pingRoute)