Fix /reports/{report_id} returning 404 - add report detail page and API endpoint

Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/4a412936-3bf7-4c02-b121-c0c342c34f1b

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-29 22:18:17 +00:00
parent a918e002be
commit af122881a5
5 changed files with 451 additions and 1 deletions
+8
View File
@@ -342,6 +342,14 @@ async def reports(request: Request):
return templates.TemplateResponse(request, "reports.html")
@app.get("/reports/{report_id}", response_class=HTMLResponse)
async def report_detail(request: Request, report_id: str):
"""View detailed information for a specific DMARC report"""
return templates.TemplateResponse(
request, "report_detail.html", {"report_id": report_id}
)
@app.get("/settings", response_class=HTMLResponse)
async def settings_page(request: Request):
return templates.TemplateResponse(request, "settings.html")