From 2c7a1853155a71c2e42710c8c1706f631568ca9a Mon Sep 17 00:00:00 2001 From: Christian Krakau-Louis Date: Tue, 25 Mar 2025 21:18:25 +0100 Subject: [PATCH] changed 404.html code --- app/frontend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/frontend.py b/app/frontend.py index 920ce22a..5d8565ec 100644 --- a/app/frontend.py +++ b/app/frontend.py @@ -26,6 +26,6 @@ async def serve_upload(request: Request): def favicon(): return os.path.join(frontend_folder, "favicon.ico") -@app.exception_handler(404) +@router.exception_handler(404) async def custom_404_handler(request: Request, exc): return FileResponse("frontend/404.html", status_code=status.HTTP_404_NOT_FOUND) \ No newline at end of file