This commit is contained in:
Josh 2026-01-09 00:16:46 +02:00
commit d69342b2e9
160 changed files with 28681 additions and 0 deletions

20
studio/embed.go Normal file
View file

@ -0,0 +1,20 @@
package studio
import (
"embed"
"io/fs"
"net/http"
"path"
)
//go:embed dist/*
var distFS embed.FS
func Handler() http.Handler {
sub, _ := fs.Sub(distFS, "dist")
return http.FileServer(http.FS(sub))
}
func Read(name string) ([]byte, error) {
return distFS.ReadFile(path.Join("dist", name))
}