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

14 lines
519 B
Python

# myapp/auth/__init__.py
from flask import Blueprint
# Define the Blueprint instance for the authentication module.
# 'auth' is the unique name for this blueprint.
# url_prefix='/api/auth' will be prepended to all routes defined in this blueprint.
bp = Blueprint('auth', __name__, url_prefix='/api/auth')
# 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 to avoid circular imports.
from . import auth_routes