feat: Add review events persistence, version display, and auto-versioning system

This commit is contained in:
Primakov Alexandr Alexandrovich
2025-10-13 14:18:37 +03:00
parent cfba28f913
commit 2db1225618
56 changed files with 750 additions and 436 deletions
+14
View File
@@ -118,6 +118,20 @@ async def health_check():
return {"status": "healthy"}
@app.get("/version")
async def get_version():
"""Get backend version"""
try:
version_file = Path(__file__).parent.parent / "VERSION"
if version_file.exists():
version = version_file.read_text().strip()
else:
version = "unknown"
return {"version": version}
except Exception:
return {"version": "unknown"}
@app.websocket("/ws/reviews")
async def websocket_endpoint(websocket: WebSocket):
"""WebSocket endpoint for real-time review updates"""