Redirect root path to web index

Signed-off-by: Sean Du <do4suki@gmail.com>
This commit is contained in:
2026-06-12 02:10:53 +08:00
parent ae1e02ba01
commit 5c2d68f979
+5
View File
@@ -107,6 +107,11 @@ func SifRouter(r *gin.Engine) {
ctx.HTML(http.StatusOK, "common/manga.html", gin.H{}) 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) { notFoundHandler := func(ctx *gin.Context) {
ss := session.Attach(ctx) ss := session.Attach(ctx)
defer ss.Finalize() defer ss.Finalize()