first running version
Some checks failed
Build Process Supervisor / build (push) Failing after 1s

This commit is contained in:
Adrian Zürcher
2025-08-05 12:01:59 +02:00
parent 5712929f23
commit b9efeb670d
12 changed files with 365 additions and 92 deletions

17
handlers/mainPage.go Normal file
View File

@@ -0,0 +1,17 @@
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)
}