"""Infrastructure endpoints required by AppFactory. No credentials needed.""" from fastapi import APIRouter from .. import config router = APIRouter(tags=["infra"]) @router.get("/health", summary="Liveness/readiness probe") def health() -> dict: """Return 200 while the app can serve traffic. Used by AppFactory monitoring.""" return {"status": "ok"} @router.get("/version", summary="Service version and build info") def version() -> dict: return { "app": config.APP_NAME, "version": config.APP_VERSION, "language": "python", "root_path": config.ROOT_PATH, "integrations": ["meta-marketing-api"], "graph_api_version": config.META_API_VERSION, }