fix: Fix /api/version endpoint path and save all review events to DB
This commit is contained in:
+3
-2
@@ -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"}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user