Merge pull request #69 from christianlouis/copilot/debug-not-found-error
Fix /reports/{report_id} returning 404 Not Found
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user