fix static

Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
Jess Frazelle 2017-04-24 14:14:22 -04:00
parent f11b64bf0e
commit e7825db8a0
No known key found for this signature in database
GPG key ID: 18F3685C0022BFF3
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -10,7 +10,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{{ .RegistryURL }}/{{ .Repo }}:{{ .Tag }} Vulnerability Report</title>
<link rel="icon" type="image/ico" href="/static/favicon.ico">
<link rel="stylesheet" href="/static/css/styles.css" />
<link rel="stylesheet" href="/static/css/bootstrap.min.css" />
</head>
<body>
<div class="container">