Skip to content

Commit

Permalink
fix: run errror
Browse files Browse the repository at this point in the history
  • Loading branch information
Mereithhh committed Dec 7, 2024
1 parent 03ceb61 commit 4e91512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func Serve(urlPrefix string, fs ServeFileSystem) gin.HandlerFunc {
if !pathHasAdmin || pathHasAPI {
return
} else {
adminFile, err := fs.Open("/admin/index.html")
adminFile, err := fs.Open("index.html")
if err != nil {
logger.LogError("文件不存在: %s", c.Request.URL.Path)
return
Expand Down

0 comments on commit 4e91512

Please sign in to comment.