Skip to content

Commit

Permalink
nsqadmin: fix index.html asset path
Browse files Browse the repository at this point in the history
  • Loading branch information
mreiferson committed Oct 13, 2020
1 parent e840be6 commit 7ba7307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nsqadmin/http.go
Expand Up @@ -126,7 +126,7 @@ func (s *httpServer) pingHandler(w http.ResponseWriter, req *http.Request, ps ht
}

func (s *httpServer) indexHandler(w http.ResponseWriter, req *http.Request, ps httprouter.Params) (interface{}, error) {
asset, _ := Asset("index.html")
asset, _ := Asset("/index.html")
t, _ := template.New("index").Funcs(template.FuncMap{
"basePath": func(p string) string {
return path.Join(s.basePath, p)
Expand Down

0 comments on commit 7ba7307

Please sign in to comment.