forked from mirrors/pkg-proxy
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.
16 lines
297 B
Go
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))
|
|
}
|