First revision

This commit is contained in:
ldy
2025-06-10 12:02:57 +08:00
parent 4f79a72294
commit 97c73b639d
45 changed files with 103 additions and 964 deletions

View File

@@ -4,8 +4,8 @@ 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')
# 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.