fix: Fix /api/version endpoint path and save all review events to DB

This commit is contained in:
Primakov Alexandr Alexandrovich
2025-10-13 14:46:28 +03:00
parent 47bbb4ebc4
commit 8d231b49db
4 changed files with 108 additions and 139 deletions
+3 -2
View File
@@ -118,7 +118,7 @@ async def health_check():
return {"status": "healthy"}
@app.get("/version")
@app.get("/api/version")
async def get_version():
"""Get backend version"""
try:
@@ -128,7 +128,8 @@ async def get_version():
else:
version = "unknown"
return {"version": version}
except Exception:
except Exception as e:
print(f"Error reading version: {e}")
return {"version": "unknown"}