feat: custom hide error message by regexp (close #1468)
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"github.com/alist-org/alist/v3/server/common"
|
||||
"github.com/alist-org/alist/v3/server/middlewares"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
@ -12,4 +13,7 @@ func dev(g *gin.RouterGroup) {
|
||||
"path": rawPath,
|
||||
})
|
||||
})
|
||||
g.GET("/hide_privacy", func(ctx *gin.Context) {
|
||||
common.ErrorStrResp(ctx, "This is ip: 1.1.1.1", 400)
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user