From 5c2d68f979af431fea074ac96e9393f035946a95 Mon Sep 17 00:00:00 2001 From: Sean Du Date: Fri, 12 Jun 2026 02:09:13 +0800 Subject: [PATCH] Redirect root path to web index Signed-off-by: Sean Du --- internal/router/router.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/router/router.go b/internal/router/router.go index 96ffbd2..d0af0d2 100644 --- a/internal/router/router.go +++ b/internal/router/router.go @@ -107,6 +107,11 @@ func SifRouter(r *gin.Engine) { ctx.HTML(http.StatusOK, "common/manga.html", gin.H{}) }) + // webui + r.GET("/", func(ctx *gin.Context) { + ctx.Redirect(http.StatusFound, "/admin/index") + }) + notFoundHandler := func(ctx *gin.Context) { ss := session.Attach(ctx) defer ss.Finalize()