refactored view package
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user