Compare commits

..

2 Commits

View File

@ -42,6 +42,7 @@ func main() {
}) })
mux.HandleFunc("/add-participant/", func(w http.ResponseWriter, r *http.Request) { mux.HandleFunc("/add-participant/", func(w http.ResponseWriter, r *http.Request) {
i++ i++
j = i
template.Must(template.ParseFiles("templates/index.html", "templates/participant.html")).ExecuteTemplate(w, "participant", i) template.Must(template.ParseFiles("templates/index.html", "templates/participant.html")).ExecuteTemplate(w, "participant", i)
}) })
mux.HandleFunc("/submit/", func(w http.ResponseWriter, r *http.Request) { mux.HandleFunc("/submit/", func(w http.ResponseWriter, r *http.Request) {