2025-06-09 17:53:19 +08:00

14 lines
526 B
Python

# myapp/dialog/__init__.py
from flask import Blueprint
# Define the Blueprint instance for the dialog module.
# 'dialog' is the unique name for this blueprint.
# url_prefix='/api/dialog' will be prepended to all routes defined in this blueprint.
bp = Blueprint('dialog', __name__, url_prefix='/api/dialog')
# Import the routes module.
# This connects the routes defined in routes.py (including helper functions) to the 'bp' instance.
# This import MUST come AFTER the Blueprint 'bp' is defined.
from . import dialog_routes