Files
Adrian Zürcher b9efeb670d
Some checks failed
Build Process Supervisor / build (push) Failing after 1s
first running version
2025-08-05 12:01:59 +02:00

18 lines
340 B
Go

package handlers
import (
"html/template"
"net/http"
)
type MainPage struct {
}
func UpdateMainPage(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "text/html; charset=utf-8")
tmpl := template.Must(
template.New("index.html").ParseFiles("templates/index.html"),
)
tmpl.Execute(w, nil)
}