added mail
This commit was merged in pull request #40.
This commit is contained in:
+5
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user