Add a report confirmation page
This commit is contained in:
parent
a2a0fdb90a
commit
711302f25d
4 changed files with 232 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue