prod deploy version

This commit is contained in:
OwusuBlessing
2025-06-11 17:40:17 +01:00
parent 3fcce3b464
commit 3bd6213a8d
6 changed files with 306 additions and 219 deletions
+6 -3
View File
@@ -410,10 +410,13 @@ async def generate_quiz_endpoint(
status_code=500,
detail=f"Unexpected error during quiz generation: {str(e)}"
)
@app.get("/health")
async def health_check():
"""Health check endpoint to verify the service is running."""
return {"status": "healthy", "timestamp": datetime.now().isoformat()}
@app.on_event("startup")
async def startup_event():
"""Initialize required components on startup"""