演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。 Co-authored-by: Cursor <cursoragent@cursor.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",
|
|
]
|