added template, fixed typos, added interval querying

This commit is contained in:
Philipp 2021-09-20 17:31:41 +02:00
parent 7e62f366e7
commit ae0b2b2890
10 changed files with 191 additions and 69 deletions

View file

@ -30,10 +30,10 @@ type Handler struct {
func (h *Handler) Home() http.HandlerFunc {
type data struct {
Servers []steamServer.Servers
Servers []steamServer.Server
}
tmpl := template.Must(template.ParseFiles("templates/layout.html", "templates/home.html"))
tmpl := template.Must(template.ParseFiles("templates/home.html"))
return func(w http.ResponseWriter, r *http.Request) {
ss, err := h.store.Servers()
if err != nil {