# app/modules/messaging/routes/api/admin.py
"""
Messaging module admin API routes.

Aggregates all admin messaging routes:
- /messages/* - Conversation and message management
- /notifications/* - Admin notifications and platform alerts
- /email-templates/* - Email template management
"""

from fastapi import APIRouter, Depends

from app.api.deps import require_module_access
from app.modules.enums import FrontendType

from .admin_messages import admin_messages_router
from .admin_notifications import admin_notifications_router
from .admin_email_templates import admin_email_templates_router

admin_router = APIRouter(
    dependencies=[Depends(require_module_access("messaging", FrontendType.ADMIN))],
)

# Aggregate all messaging admin routes
admin_router.include_router(admin_messages_router, tags=["admin-messages"])
admin_router.include_router(admin_notifications_router, tags=["admin-notifications"])
admin_router.include_router(admin_email_templates_router, tags=["admin-email-templates"])
