Embed icons directory in static assets
Frontend needs access to icons (e.g. mihome.webp for Xiaomi page). The //go:embed directive was limited to *.html only, so binary assets in www/icons/ were never served.
This commit is contained in:
+1
-1
@@ -2,5 +2,5 @@ package www
|
||||
|
||||
import "embed"
|
||||
|
||||
//go:embed *.html
|
||||
//go:embed *.html icons
|
||||
var Static embed.FS
|
||||
|
||||
Reference in New Issue
Block a user