version build

This commit is contained in:
Krzysztof
2025-08-03 12:17:15 +02:00
parent 27e89b297a
commit 17d11decaa
10 changed files with 60 additions and 31 deletions

View File

@@ -7,13 +7,15 @@ import (
"uptimemonitor"
"uptimemonitor/form"
"uptimemonitor/html"
"uptimemonitor/pkg/version"
"golang.org/x/crypto/bcrypt"
)
func (h *Handler) SetupPage() http.HandlerFunc {
type data struct {
Form form.SetupForm
Version string
Form form.SetupForm
}
tmpl := template.Must(template.ParseFS(html.FS, "layout.html", "setup.html"))
@@ -31,7 +33,8 @@ func (h *Handler) SetupPage() http.HandlerFunc {
}
tmpl.Execute(w, data{
Form: form.SetupForm{},
Version: version.Version,
Form: form.SetupForm{},
})
}
}