Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

544 B
Raw Blame
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",
]