QR codes complete, account settings finished!
+ refactored templates a little; this might need more work!
This commit is contained in:
parent
1edc051ae2
commit
3450d879ac
13 changed files with 175 additions and 135 deletions
2
main.go
2
main.go
|
@ -404,7 +404,7 @@ func createServeMux(app *model.AppState) *http.ServeMux {
|
|||
}
|
||||
|
||||
if r.URL.Path == "/" || r.URL.Path == "/index.html" {
|
||||
err := templates.Pages["index"].Execute(w, nil)
|
||||
err := templates.IndexTemplate.Execute(w, nil)
|
||||
if err != nil {
|
||||
http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue