mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-11-25 19:37:41 +08:00
chore: standardize context keys with custom ContextKey type (#697)
* chore: standardize context keys with custom ContextKey type * fix bug * 使用Request.Context
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user