fix: home page 500

This commit is contained in:
naiba committed 2024-11-29 22:49:17 +08:00
1 parent a3a7d70c8c
commit 844947f89b
2 files changed
+3 -2

No files matched your search

+3
View File
@@ -226,6 +226,9 @@ func fallbackToFrontend(adminFrontend, userFrontend fs.FS) func(*gin.Context) {
if err != nil {
return false
}
if fileStat.IsDir() {
return false
}
http.ServeContent(c.Writer, c.Request, path, fileStat.ModTime(), f.(io.ReadSeeker))
return true
}