Second revision

This commit is contained in:
ldy
2025-06-19 10:58:02 +08:00
parent 97c73b639d
commit 7baa3cea2a
50 changed files with 1310 additions and 129 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' so routes like '/register' become '/api/register'
bp = Blueprint('auth', __name__, url_prefix='/api')
# 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.