Files

29 lines
544 B
Python
Raw Permalink Normal View History

2026-10-19 01:16:16 +00:00
from types import ModuleType
+3
2025-11-12 17:59:37 +08:00
from flask import Blueprint
# Create trigger blueprint
bp = Blueprint("trigger", __name__, url_prefix="/triggers")
2026-10-19 01:16:16 +00:00
def _register_controllers() -> tuple[ModuleType, ...]:
"""Load route modules after their namespaces and schema models exist."""
# Import routes after blueprint creation to avoid circular imports
from . import trigger, webhook
return (
trigger,
webhook,
)
(
trigger,
webhook,
) = _register_controllers()
+3
2025-11-12 17:59:37 +08:00
__all__ = [
"trigger",
"webhook",
]