2025-06-09 17:53:19 +08:00

25 lines
689 B
Python

# backend/myapp/extensions.py
"""
Central place to instantiate Flask extension objects.
These objects are initialized with the app instance later in the application factory.
"""
from flask_pymongo import PyMongo
from flask_cors import CORS
# from flask_jwt_extended import JWTManager
from flask_marshmallow import Marshmallow
# Add other necessary extension imports (e.g., Migrate if using SQL + Alembic)
# Instantiate extensions without the app object
mongo = PyMongo()
cors = CORS()
# jwt = JWTManager()
ma = Marshmallow()
# migrate = Migrate() # Example if using Flask-Migrate
# You can add other globally used utilities here if needed,
# but primarily focus on Flask extensions.