feat: Remove useless code

This commit is contained in:
Yang Luo 2023-08-08 19:16:55 +08:00
parent 15427ad9d6
commit 01e58158b7

View File

@ -55,12 +55,6 @@ func StaticFilter(ctx *context.Context) {
path += urlPath
}
path2 := strings.TrimPrefix(path, "web/build/images/")
if util.FileExist(path2) {
makeGzipResponse(ctx.ResponseWriter, ctx.Request, path2)
return
}
if !util.FileExist(path) {
path = "web/build/index.html"
}