"""Optional unified FastAPI app combining stegasoo and verisoo APIs.

Usage::

    uvicorn soosef.api:app --host 0.0.0.0 --port 8000

Requires the [api] extra: pip install soosef[api]
"""

from fastapi import FastAPI

app = FastAPI(
    title="SooSeF API",
    version="0.1.0",
    description="Unified steganography and attestation API",
)

try:
    from soosef.stegasoo.api import app as stego_api

    app.mount("/stego", stego_api)
except ImportError:
    pass

try:
    from soosef.verisoo.api import app as verisoo_api

    app.mount("/attest", verisoo_api)
except ImportError:
    pass


@app.get("/health")
async def health():
    """Health check endpoint."""
    return {"status": "ok"}
