Second revision
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user