added template, fixed typos, added interval querying
This commit is contained in:
parent
7e62f366e7
commit
ae0b2b2890
10 changed files with 191 additions and 69 deletions
|
@ -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 {
|
||||
|
|
Reference in a new issue