diff --git a/route/route.go b/route/route.go index 22c30b1..16d4cea 100644 --- a/route/route.go +++ b/route/route.go @@ -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, diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100755 index 0000000..7578636 Binary files /dev/null and b/static/favicon.ico differ diff --git a/static/static.go b/static/static.go index fd93377..ab12fb2 100644 --- a/static/static.go +++ b/static/static.go @@ -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 {