Files
meta/app/routers/infra.py
T
JiriUhlir a7cb53e0e6 first
2026-07-20 07:36:55 +02:00

25 lines
715 B
Python

"""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,
}