"""API نسخه ۱: تجمیع routerها."""
from fastapi import APIRouter

from app.api.v1 import (
    auth,
    domains,
    features,
    health,
    me,
    onboarding,
    plans,
    public_tenant,
    service_registry,
    subscriptions,
    tenant_context,
    tenants,
)
from app.api.v1.admin import tenants as admin_tenants

api_router = APIRouter()

# health خارج از prefix نسخه هم در main اضافه می‌شود؛ اینجا برای کامل بودن.
api_router.include_router(auth.router)
api_router.include_router(public_tenant.router)
api_router.include_router(admin_tenants.router)
api_router.include_router(tenants.router)
api_router.include_router(domains.router)
api_router.include_router(plans.router)
api_router.include_router(features.router)
api_router.include_router(subscriptions.router)
api_router.include_router(service_registry.router)
api_router.include_router(me.router)
api_router.include_router(onboarding.router)
api_router.include_router(tenant_context.router)

__all__ = ["api_router", "health"]
