Added hotfixes

This commit is contained in:
Sviatoslav Tsariov Yurievich 2025-07-01 13:52:24 +03:00
parent 4c895d6deb
commit 45b2ad580d

View File

@ -4,19 +4,14 @@ monkey.patch_all()
from flask_cors import CORS
from pymongo import MongoClient
import os
import sys
from src.config import Config
from src.singletons.database_singleton import DatabaseSingleton
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, BASE_DIR)
from config import Config
from singletons.database_singleton import DatabaseSingleton
from infra.server import app, socketio
from controllers.user_controller import user_blueprint
from controllers.reservation_controller import reservation_blueprint
from controllers.health_controller import health_blueprint
from controllers.room_controller import room_blueprint
from src.infra.server import app
from src.controllers.user_controller import user_blueprint
from src.controllers.reservation_controller import reservation_blueprint
from src.controllers.health_controller import health_blueprint
from src.controllers.room_controller import room_blueprint
CORS(app)
app.config['JWT_SECRET_KEY'] = Config.JWT_SECRET_KEY
@ -36,6 +31,3 @@ else:
def create_app():
return app
if __name__ == '__main__':
socketio.run(app, host=Config.APP_HOST, debug=False)