- Auto-fixed 4,496 lint issues (import sorting, modern syntax, etc.) - Added ignore rules for patterns intentional in this codebase: E402 (late imports), E712 (SQLAlchemy filters), B904 (raise from), SIM108/SIM105/SIM117 (readability preferences) - Added per-file ignores for tests and scripts - Excluded broken scripts/rename_terminology.py (has curly quotes) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
28 lines
1000 B
Python
28 lines
1000 B
Python
# 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_email_templates import admin_email_templates_router
|
|
from .admin_messages import admin_messages_router
|
|
from .admin_notifications import admin_notifications_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"])
|