# myapp/urls/__init__.py from flask import Blueprint # Define the Blueprint instance for the URL management module. # 'urls' is the unique name for this blueprint. # url_prefix='/api' will be prepended to all routes defined in this blueprint. # Specific paths like '/projects//urls' or '/urls/' will be defined in routes.py. bp = Blueprint('urls', __name__, url_prefix='/api') # Import the routes module. # This connects the routes defined in routes.py to the 'bp' instance. # This import MUST come AFTER the Blueprint 'bp' is defined. from . import urls_routes