scaffolding for new seasons

This commit is contained in:
2026-02-02 19:12:14 +11:00
parent 5b4fe91c55
commit 67bf84c3a6
21 changed files with 520 additions and 41 deletions

View File

@@ -9,7 +9,7 @@ import (
"git.haelnorr.com/h/oslstats/internal/view/page"
)
// Handles responses to the / path. Also serves a 404 Page for paths that
// NotifyTester handles responses to the / path. Also serves a 404 Page for paths that
// don't have explicit handlers
func NotifyTester(s *hws.Server) http.Handler {
return http.HandlerFunc(
@@ -22,9 +22,9 @@ func NotifyTester(s *hws.Server) http.Handler {
// Error: testErr,
// })
// page.Render(r.Context(), w)
page.Test().Render(r.Context(), w)
renderSafely(page.Test(), s, r, w)
} else {
r.ParseForm()
_ = r.ParseForm()
// target := r.Form.Get("target")
title := r.Form.Get("title")
level := r.Form.Get("type")