Fix embedding of static files
This commit is contained in:
parent
8edd857d22
commit
a9e304ee08
2 changed files with 2 additions and 5 deletions
|
|
@ -26,10 +26,7 @@ func main() {
|
|||
router.Handle(
|
||||
"/static/",
|
||||
logger(
|
||||
http.StripPrefix(
|
||||
"/static/",
|
||||
http.FileServer(http.FS(conf.Static)),
|
||||
),
|
||||
http.FileServer(http.FS(conf.Static)),
|
||||
),
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ var (
|
|||
{Path: "icons/eye.svg", Url: "https://raw.githubusercontent.com/twbs/icons/refs/heads/main/icons/eye.svg"},
|
||||
}
|
||||
BaseTemplate string = "base.tmpl.html"
|
||||
//go:embed static/*
|
||||
//go:embed static/css/* static/icons/* static/js/*
|
||||
Static embed.FS
|
||||
//go:embed templates/*
|
||||
Templates embed.FS
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue