diff --git a/server/server.go b/server/server.go index 487c6ec6..b7f92c8f 100644 --- a/server/server.go +++ b/server/server.go @@ -175,7 +175,7 @@ func main() { // static files handler staticHandler := http.FileServer(http.Dir(staticDir)) - mux.Handle("/static", staticHandler) + mux.Handle("/static/", http.StripPrefix("/static/", staticHandler)) mux.HandleFunc("/repo/{repo}", rc.tagsHandler) mux.HandleFunc("/repo/{repo}/{tag}", rc.tagHandler) mux.HandleFunc("/repo/{repo}/{tag}/vulns", rc.vulnerabilitiesHandler) diff --git a/server/templates/vulns.html b/server/templates/vulns.html index d2aa8cc7..89feb038 100644 --- a/server/templates/vulns.html +++ b/server/templates/vulns.html @@ -10,7 +10,7 @@ {{ .RegistryURL }}/{{ .Repo }}:{{ .Tag }} Vulnerability Report - +