refactored view package

This commit is contained in:
2026-02-09 19:30:47 +11:00
parent 24733098b4
commit d01485d139
47 changed files with 653 additions and 490 deletions

View File

@@ -7,7 +7,7 @@ import (
"git.haelnorr.com/h/golib/hws"
"git.haelnorr.com/h/oslstats/internal/notify"
"git.haelnorr.com/h/oslstats/internal/view/page"
testview "git.haelnorr.com/h/oslstats/internal/view/testview"
)
// NotifyTester handles responses to the / path. Also serves a 404 Page for paths that
@@ -17,7 +17,7 @@ func NotifyTester(s *hws.Server) http.Handler {
func(w http.ResponseWriter, r *http.Request) {
testErr := errors.New("This is a stack trace. No really i swear. Just pretend ok? Thanks")
if r.Method == "GET" {
renderSafely(page.Test(), s, r, w)
renderSafely(testview.NotificationTestPage(), s, r, w)
} else {
_ = r.ParseForm()
// target := r.Form.Get("target")