first round of files

This commit is contained in:
2026-05-06 23:13:06 +02:00
parent a30962474d
commit 2aa5d01307
24 changed files with 991 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
package web
import (
"embed"
"io/fs"
"net/http"
)
//go:embed all:dist
var staticFiles embed.FS
// FS returns the embedded frontend/dist subtree.
// Falls back to an empty FS during development (before `make build` runs).
func FS() fs.FS {
sub, err := fs.Sub(staticFiles, "dist")
if err != nil {
return http.FS(http.Dir(""))
}
return sub
}