INNER CODE UNIT · Python

liveness_check

AleksNeStu/ai-real-estate-assistant · apps/api/api/main.py:660

async def liveness_check():
    """
    K8s liveness probe - checks if app is alive.
    Simple ping endpoint (no dependency checks).
    """
    return {"status": "alive", "timestamp": datetime.now(tz=UTC).isoformat()}


@app.get("/api/v1/verify-auth", dependencies=[Depends(get_api_key)], tags=["Auth"])
async def verify_auth():
    """
    Verify API key authentication.
    """
    return {"message": "Authenticated successfully", "valid": True}


@app.get("/metrics", tags=["System"])
async def metrics_endpoint():

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…