feat: offer a demo instance link from the live deployment
This commit is contained in:
parent
cdace7d170
commit
b60a492417
10 changed files with 63 additions and 8 deletions
|
|
@ -124,7 +124,10 @@ def create_app(
|
|||
|
||||
@app.get("/api/health")
|
||||
def health() -> dict[str, str]:
|
||||
return {"status": "ok", "mode": active_settings.app_mode}
|
||||
payload = {"status": "ok", "mode": active_settings.app_mode}
|
||||
if active_settings.demo_instance_url:
|
||||
payload["demo_url"] = active_settings.demo_instance_url
|
||||
return payload
|
||||
|
||||
app.include_router(router)
|
||||
app.include_router(recommendations_router)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue