Add a report detail page.

This commit is contained in:
Eli Ribble 2025-11-05 21:37:11 +00:00
parent c99a5a3f62
commit 4eebb6b88a
No known key found for this signature in database
4 changed files with 153 additions and 0 deletions

View file

@ -82,6 +82,13 @@ func getReport(w http.ResponseWriter, r *http.Request) {
respondError(w, "Failed to generate report page", err, http.StatusInternalServerError)
}
}
func getReportDetail(w http.ResponseWriter, r *http.Request) {
code := chi.URLParam(r, "code")
err := htmlReportDetail(w, code)
if err != nil {
respondError(w, "Failed to generate report page", err, http.StatusInternalServerError)
}
}
func getRoot(w http.ResponseWriter, r *http.Request) {
user, err := getAuthenticatedUser(r)