Add a report confirmation page

This commit is contained in:
Eli Ribble 2025-11-05 22:03:33 +00:00
parent a2a0fdb90a
commit 711302f25d
No known key found for this signature in database
4 changed files with 232 additions and 0 deletions

View file

@ -83,6 +83,14 @@ func getReport(w http.ResponseWriter, r *http.Request) {
}
}
func getReportConfirmation(w http.ResponseWriter, r *http.Request) {
code := chi.URLParam(r, "code")
err := htmlReportConfirmation(w, code)
if err != nil {
respondError(w, "Failed to generate report page", err, http.StatusInternalServerError)
}
}
func getReportContribute(w http.ResponseWriter, r *http.Request) {
code := chi.URLParam(r, "code")
err := htmlReportContribute(w, code)