writekit/internal/build/assets/assets.go
2026-01-09 00:16:46 +02:00

15 lines
202 B
Go

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))
}