fix tests

This commit is contained in:
nkanaev
2026-07-10 18:41:26 +01:00
parent 8fc914448b
commit 8e05b515c8
2 changed files with 5 additions and 4 deletions

View File

@@ -15,9 +15,10 @@ var static embed.FS
var templates embed.FS
func Templates() *template.Template {
return template.Must(template.ParseFS(templates, "*.html"))
return template.Must(template.ParseFS(templates, "templates/*.html"))
}
func StaticFS() fs.FS {
return static
fs, _ := fs.Sub(static, "static")
return fs
}