This commit is contained in:
j2rong4cn
2025-07-12 19:20:33 +08:00
parent e7d848b1ef
commit d669a62ccf

View File

@ -16,6 +16,7 @@ import (
)
func Init(e *gin.Engine) {
e.ContextWithFallback = true
if !utils.SliceContains([]string{"", "/"}, conf.URL.Path) {
e.GET("/", func(c *gin.Context) {
c.Redirect(302, conf.URL.Path)