writekit/internal/build/assets/assets.go

16 lines
202 B
Go
Raw Normal View History

2026-01-09 00:16:46 +02:00
package assets
import (
"embed"
"io/fs"
"net/http"
)
//go:embed css js
var staticFS embed.FS
func Handler() http.Handler {
sub, _ := fs.Sub(staticFS, ".")
return http.FileServer(http.FS(sub))
}