Fixed webpages so they now load [ci skip]
This commit is contained in:
parent
c4ffe8810b
commit
c3d733ae35
|
@ -32,7 +32,7 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body onload="onLoad();">
|
<body onload="onLoad();" bgcolor="#FFFFFF">
|
||||||
<h1>Add Song Form</h1>
|
<h1>Add Song Form</h1>
|
||||||
<input id="textbox" type="text" />
|
<input id="textbox" type="text" />
|
||||||
<input id="add" type="button" value="Add Song"
|
<input id="add" type="button" value="Add Song"
|
||||||
|
|
2
web.go
2
web.go
|
@ -75,7 +75,7 @@ func (web *WebServer) homepage(w http.ResponseWriter, r *http.Request) {
|
||||||
webpage = "index"
|
webpage = "index"
|
||||||
}
|
}
|
||||||
|
|
||||||
t, err := template.ParseFiles(fmt.Sprintf("%s/.mumbledj/songs/%s.html", dj.homeDir, webpage))
|
t, err := template.ParseFiles(fmt.Sprintf("%s/.mumbledj/web/%s.html", dj.homeDir, webpage))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
|
|
Reference in a new issue