from fastapi import APIRouter, Depends

from app.api.deps import require_session
from app.services.tenant_store import SessionIdentity, get_tenant_store


router = APIRouter()


@router.get("/context")
def tenant_context(session: SessionIdentity = Depends(require_session)) -> dict[str, object]:
    return get_tenant_store().get_tenant_context(session.tenant_id)
