Files
dify/api/controllers/trigger/__init__.py
T
672a627fa5 ci: enable Ruff E402 (#44123)
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-10-19 01:16:16 +00:00

30 lines
544 B
Python

from types import ModuleType
from flask import Blueprint
# Create trigger blueprint
bp = Blueprint("trigger", __name__, url_prefix="/triggers")
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()
__all__ = [
"trigger",
"webhook",
]