src/auth/routes.py : blueprint auth et fixtures de test (#73)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Colin Maudry
2026-04-20 17:35:06 +02:00
parent 8896726e09
commit 1c0fb0a960
3 changed files with 30 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
from flask import Blueprint
auth_bp = Blueprint("auth", __name__, url_prefix="/auth")
+4
View File
@@ -43,6 +43,10 @@ def init_auth(app: Flask) -> None:
_login_manager.user_loader(load_user)
_login_manager.init_app(app)
from src.auth.routes import auth_bp
app.register_blueprint(auth_bp)
_csrf = CSRFProtect(app)
if not os.getenv("SMTP_HOST"):