changed 404.html code

This commit is contained in:
Christian Krakau-Louis
2025-03-25 21:18:25 +01:00
parent b95d13df1f
commit 2c7a185315
+1 -1
View File
@@ -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)