This commit is contained in:
2026-02-13 23:27:54 +01:00
parent 1825b50dec
commit 1e126734b0
13 changed files with 2743 additions and 3 deletions

14
internal/server/static.go Normal file
View File

@@ -0,0 +1,14 @@
package server
import (
"embed"
"io/fs"
)
//go:embed templates/static/*
var staticFS embed.FS
// GetStaticFS returns the embedded static filesystem
func GetStaticFS() (fs.FS, error) {
return fs.Sub(staticFS, "templates/static")
}