# 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
- /merchants/* - Merchant management
- /platforms/* - Platform management (super admin only)
- /stores/* - Store management
- /store-domains/* - Store 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_merchant_domains import admin_merchant_domains_router
from .admin_merchants import admin_merchants_router
from .admin_module_config import router as admin_module_config_router
from .admin_modules import router as admin_modules_router
from .admin_platform_users import admin_platform_users_router
from .admin_platforms import admin_platforms_router
from .admin_store_domains import admin_store_domains_router
from .admin_store_roles import admin_store_roles_router
from .admin_store_subdomains import admin_store_subdomains_router
from .admin_stores import admin_stores_router
from .admin_users import admin_users_router
from .user_account import admin_account_router

router = APIRouter()

# Aggregate all tenancy admin routes
router.include_router(admin_account_router, tags=["admin-account"])
router.include_router(admin_auth_router, tags=["admin-auth"])
router.include_router(admin_users_router, tags=["admin-admin-users"])
router.include_router(admin_platform_users_router, tags=["admin-users"])
router.include_router(admin_merchants_router, tags=["admin-merchants"])
router.include_router(admin_platforms_router, tags=["admin-platforms"])
router.include_router(admin_stores_router, tags=["admin-stores"])
router.include_router(admin_store_domains_router, tags=["admin-store-domains"])
router.include_router(admin_store_subdomains_router, tags=["admin-store-subdomains"])
router.include_router(admin_store_roles_router, tags=["admin-store-roles"])
router.include_router(admin_merchant_domains_router, tags=["admin-merchant-domains"])
router.include_router(admin_modules_router, tags=["admin-modules"])
router.include_router(admin_module_config_router, tags=["admin-module-config"])
