favico
This commit is contained in:
parent
f1b1d284ec
commit
ddc64028bb
|
@ -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
BIN
static/favicon.ico
Executable file
Binary file not shown.
After Width: | Height: | Size: 7.0 KiB |
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user