2025-06-10 12:02:57 +08:00

14 lines
500 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' so routes like '/register' become '/api/register'
bp = Blueprint('auth', __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 to avoid circular imports.
from . import auth_routes