pkg-proxy/internal/server/static.go
Andrew Nesbitt 658e9621d8
Add Container, Debian, RPM handlers and enrichment API
Adds proxy support for Docker/OCI container registries, Debian/APT
repositories, and RPM/Yum repositories. Includes a new enrichment API
for package metadata, vulnerability scanning, and outdated detection.

Updates the dashboard with Tailwind CSS, dark mode support, and a
security overview section showing vulnerability counts.
2026-01-29 19:35:15 +00:00

16 lines
297 B
Go

package server
import (
"embed"
"io/fs"
"net/http"
)
//go:embed static/*
var staticFiles embed.FS
// staticHandler returns an http.Handler that serves embedded static files.
func staticHandler() http.Handler {
sub, _ := fs.Sub(staticFiles, "static")
return http.FileServer(http.FS(sub))
}