fix
This commit is contained in:
14
internal/server/static.go
Normal file
14
internal/server/static.go
Normal 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")
|
||||
}
|
||||
Reference in New Issue
Block a user