diff options
Diffstat (limited to 'internal')
-rw-r--r-- | internal/handlers/main.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/internal/handlers/main.go b/internal/handlers/main.go index 4945db8..3f2e1b2 100644 --- a/internal/handlers/main.go +++ b/internal/handlers/main.go @@ -3,6 +3,7 @@ package handlers import ( "demoon/config" "demoon/internal/database/repos" + "demoon/internal/models" "html/template" "log/slog" "net/http" @@ -42,5 +43,10 @@ func (h *Handlers) MainPage(w http.ResponseWriter, r *http.Request) { abortWithError(w, err.Error()) return } - tmpl.ExecuteTemplate(w, "main", nil) + testQuestion := &models.Question{ + Text: "___ du keine Zweifel daran?", + Options: []string{"Haben", "Hast", "Hat", "Habt"}, + CorrectIndex: 1, + } + tmpl.ExecuteTemplate(w, "main", testQuestion) } |