from fastapi import APIRouter
from gsap_broker.settings import settings

router = APIRouter()

@router.get("/health/")
async def health():
    return {"status": "ok", "broker": settings.broker_name, "did": settings.broker_did,
            "gsap_version": "0.1.0", "spec": "GCAP-SPEC-SHELLBOUND-BROKER-0001",
            "chronicle": "enabled" if settings.chronicle_webhook_url else "disabled"}
