Tonis Tiigi f9a76355b5
history: add UI view to traces
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2025-02-11 11:40:01 -08:00

18 lines
285 B
Go

package jaegerui
import (
"embed"
"io/fs"
"net/http"
"github.com/tonistiigi/jaeger-ui-rest/decompress"
)
//go:embed public
var staticFiles embed.FS
func FS(cfg Config) http.FileSystem {
files, _ := fs.Sub(staticFiles, "public")
return http.FS(decompress.NewFS(files, cfg))
}