Files
pixa/internal/static/static.go
sneak aad5e59d23 Add static files and HTML templates for web UI
Embedded Tailwind CSS and login/generator templates.
Self-contained with no external dependencies.
2026-01-08 07:38:09 -08:00

22 lines
390 B
Go

// Package static provides embedded static files for the web UI.
package static
import (
"embed"
"io/fs"
"net/http"
)
//go:embed *.js
var files embed.FS
// FS returns the embedded filesystem containing static files.
func FS() fs.FS {
return files
}
// Handler returns an http.Handler that serves static files.
func Handler() http.Handler {
return http.FileServer(http.FS(files))
}