Fixed eventlet

This commit is contained in:
Sviatoslav Tsariov Yurievich 2025-06-30 20:36:01 +03:00
parent a3cfcd36f2
commit 872523d04b
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,6 @@ eventlet.monkey_patch()
from flask_cors import CORS
from pymongo import MongoClient
from flask_jwt_extended import JWTManager
from config import Config
from singletons.database_singleton import DatabaseSingleton
@ -22,7 +21,6 @@ app.register_blueprint(reservation_blueprint, url_prefix='/reservation')
app.register_blueprint(room_blueprint, url_prefix='/room')
app.register_blueprint(health_blueprint, url_prefix='/health')
jwt = JWTManager(app)
client = MongoClient(Config.MONGO_URI)
db = DatabaseSingleton.get_instance()

View File

@ -1,5 +1,7 @@
from flask import Flask
from flask_socketio import SocketIO
from flask_jwt_extended import JWTManager
app = Flask(__name__)
socketio = SocketIO(app, async_mode='eventlet', cors_allowed_origins="*")
jwt = JWTManager(app)