fix: BACKEND_API_ENDPOINT resolution from env and cloudflared tunnel (#135)

This commit is contained in:
Sabiha Khan 2026-01-29 14:06:08 +05:30 committed by GitHub
parent 814271e7b1
commit 4a8e4fe7a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 669 additions and 72 deletions

View file

@ -58,11 +58,13 @@ class HealthResponse(BaseModel):
@router.get("/health", response_model=HealthResponse)
async def health() -> HealthResponse:
from api.constants import APP_VERSION, BACKEND_API_ENDPOINT
from api.constants import APP_VERSION
from api.utils.common import get_backend_endpoints
logger.debug("Health endpoint called")
backend_endpoint, _ = await get_backend_endpoints()
return HealthResponse(
status="ok",
version=APP_VERSION,
backend_api_endpoint=BACKEND_API_ENDPOINT,
backend_api_endpoint=backend_endpoint,
)