swag-shop/backend/app/__init__.py

30 lines
732 B
Python
Raw Normal View History

# from flask import Flask
# from flask_jwt_extended import JWTManager
# from flask_mail import Mail
# from flasgger import Swagger
# from app.doc.main_swag import main_swagger
# app = Flask(__name__)
# from app.config import FlaskTesting, FlaskProduction
# app.config.from_object(FlaskTesting)
# flask_mail = Mail(app)
# jwt_manager = JWTManager(app)
# swag = Swagger(app, template=main_swagger)
# def create_app():
# from app.api import bp, bp_errors, bp_product, bp_user, bp_cart
# app.register_blueprint(bp)
# app.register_blueprint(bp_errors)
# app.register_blueprint(bp_product)
# app.register_blueprint(bp_user)
# app.register_blueprint(bp_cart)
# from . import jwt_utils
# return app