added mail

This commit was merged in pull request #40.
This commit is contained in:
Chinenye Nmoh
2025-07-15 20:25:49 +01:00
parent 22ea12b3c4
commit 7ac9b8c061
7 changed files with 86 additions and 2 deletions
+5 -1
View File
@@ -1,9 +1,10 @@
from flask import Flask
from flask_mail import Mail
from flask_cors import CORS
from app.config import Config
from app.routes import auth_bp, autocall_bp
from app.response import (method_not_allowed, unsupported_media_type, not_found, bad_request)
from app.extensions import db
from app.extensions import db, mail
def create_app():
@@ -15,6 +16,9 @@ def create_app():
# Setup CORS
CORS(app)
# Initialize Flask-Mail
mail.init_app(app)
# Register blueprints
app.register_blueprint(auth_bp)