This commit is contained in:
xing 2022-09-22 21:59:33 +08:00
parent f1b1d284ec
commit ddc64028bb
3 changed files with 2 additions and 1 deletions

View File

@ -32,6 +32,7 @@ func SetupRouter() *gin.Engine {
})))*/
f := static.Fs{FS: static.FsEx, Path: "wp-includes"}
r.StaticFileFS("/favicon.ico", "favicon.ico", http.FS(static.FsEx))
r.StaticFS("/wp-includes", http.FS(f))
r.StaticFS("/wp-content", http.FS(static.Fs{
FS: static.FsEx,

BIN
static/favicon.ico Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

View File

@ -8,7 +8,7 @@ import (
"strings"
)
//go:embed wp-content wp-includes
//go:embed wp-content wp-includes favicon.ico
var FsEx embed.FS
type Fs struct {