2024-12-02 21:15:25 +01:00
|
|
|
# from flask import Flask
|
|
|
|
# from flask_jwt_extended import JWTManager
|
|
|
|
# from flask_mail import Mail
|
|
|
|
# from flasgger import Swagger
|
2024-12-02 08:45:08 +01:00
|
|
|
|
2024-12-02 21:15:25 +01:00
|
|
|
# from app.doc.main_swag import main_swagger
|
2024-12-02 08:45:08 +01:00
|
|
|
|
2024-12-02 21:15:25 +01:00
|
|
|
# app = Flask(__name__)
|
|
|
|
# from app.config import FlaskTesting, FlaskProduction
|
2024-12-02 08:45:08 +01:00
|
|
|
|
2024-12-02 21:15:25 +01:00
|
|
|
# app.config.from_object(FlaskTesting)
|
2024-12-02 08:45:08 +01:00
|
|
|
|
2024-12-02 21:15:25 +01:00
|
|
|
# flask_mail = Mail(app)
|
|
|
|
# jwt_manager = JWTManager(app)
|
|
|
|
# swag = Swagger(app, template=main_swagger)
|
2024-12-02 08:45:08 +01:00
|
|
|
|
|
|
|
|
2024-12-02 21:15:25 +01:00
|
|
|
# def create_app():
|
|
|
|
# from app.api import bp, bp_errors, bp_product, bp_user, bp_cart
|
2024-12-02 08:45:08 +01:00
|
|
|
|
2024-12-02 21:15:25 +01:00
|
|
|
# app.register_blueprint(bp)
|
|
|
|
# app.register_blueprint(bp_errors)
|
|
|
|
# app.register_blueprint(bp_product)
|
|
|
|
# app.register_blueprint(bp_user)
|
|
|
|
# app.register_blueprint(bp_cart)
|
2024-12-02 08:45:08 +01:00
|
|
|
|
2024-12-02 21:15:25 +01:00
|
|
|
# from . import jwt_utils
|
2024-12-02 08:45:08 +01:00
|
|
|
|
2024-12-02 21:15:25 +01:00
|
|
|
# return app
|