mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-28 11:46:20 -04:00
fix static
Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
parent
f11b64bf0e
commit
e7825db8a0
2 changed files with 2 additions and 2 deletions
|
@ -175,7 +175,7 @@ func main() {
|
||||||
|
|
||||||
// static files handler
|
// static files handler
|
||||||
staticHandler := http.FileServer(http.Dir(staticDir))
|
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}", rc.tagsHandler)
|
||||||
mux.HandleFunc("/repo/{repo}/{tag}", rc.tagHandler)
|
mux.HandleFunc("/repo/{repo}/{tag}", rc.tagHandler)
|
||||||
mux.HandleFunc("/repo/{repo}/{tag}/vulns", rc.vulnerabilitiesHandler)
|
mux.HandleFunc("/repo/{repo}/{tag}/vulns", rc.vulnerabilitiesHandler)
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||||
<title>{{ .RegistryURL }}/{{ .Repo }}:{{ .Tag }} Vulnerability Report</title>
|
<title>{{ .RegistryURL }}/{{ .Repo }}:{{ .Tag }} Vulnerability Report</title>
|
||||||
<link rel="icon" type="image/ico" href="/static/favicon.ico">
|
<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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
Loading…
Reference in a new issue