mirror of
https://github.com/langgenius/dify.git
synced 2026-11-10 21:35:45 +08:00
Co-authored-by: Codex <codex@openai.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
30 lines
544 B
Python
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",
|
|
]
|