mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-25 00:43:28 +08:00
w
This commit is contained in:
parent
73ffc68374
commit
efde0ff507
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ func SwaggerHandler() gin.HandlerFunc {
|
|||
return func(c *gin.Context) {
|
||||
path := c.Request.URL.Path
|
||||
path = strings.TrimPrefix(path, "/1panel/swagger")
|
||||
if !matcher.MatchString(path) {
|
||||
if !matcher.MatchString(path) && path != "/" {
|
||||
// 404
|
||||
c.AbortWithStatus(http.StatusNotFound)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue