Merge pull request #69 from christianlouis/copilot/debug-not-found-error

Fix /reports/{report_id} returning 404 Not Found
This commit is contained in:
Christian Krakau-Louis
2026-03-30 00:27:52 +02:00
committed by GitHub
5 changed files with 451 additions and 1 deletions
+8
View File
@@ -408,6 +408,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")