# app/modules/tenancy/routes/api/admin.py
"""
Tenancy module admin API routes.

Aggregates all admin tenancy routes:
- /auth/* - Admin authentication (login, logout, /me, platform selection)
- /admin-users/* - Admin user management (super admin only)
- /users/* - Platform user management
- /companies/* - Company management
- /platforms/* - Platform management (super admin only)
- /vendors/* - Vendor management
- /vendor-domains/* - Vendor domain configuration
- /modules/* - Platform module management
- /module-config/* - Module configuration management

The tenancy module owns identity and organizational hierarchy.
"""

from fastapi import APIRouter

from .admin_auth import admin_auth_router
from .admin_users import admin_users_router
from .admin_platform_users import admin_platform_users_router
from .admin_companies import admin_companies_router
from .admin_platforms import admin_platforms_router
from .admin_vendors import admin_vendors_router
from .admin_vendor_domains import admin_vendor_domains_router
from .admin_modules import router as admin_modules_router
from .admin_module_config import router as admin_module_config_router

admin_router = APIRouter()

# Aggregate all tenancy admin routes
admin_router.include_router(admin_auth_router, tags=["admin-auth"])
admin_router.include_router(admin_users_router, tags=["admin-admin-users"])
admin_router.include_router(admin_platform_users_router, tags=["admin-users"])
admin_router.include_router(admin_companies_router, tags=["admin-companies"])
admin_router.include_router(admin_platforms_router, tags=["admin-platforms"])
admin_router.include_router(admin_vendors_router, tags=["admin-vendors"])
admin_router.include_router(admin_vendor_domains_router, tags=["admin-vendor-domains"])
admin_router.include_router(admin_modules_router, tags=["admin-modules"])
admin_router.include_router(admin_module_config_router, tags=["admin-module-config"])
