Added hotfixes
This commit is contained in:
parent
4c895d6deb
commit
45b2ad580d
22
src/app.py
22
src/app.py
@ -4,19 +4,14 @@ monkey.patch_all()
|
|||||||
from flask_cors import CORS
|
from flask_cors import CORS
|
||||||
from pymongo import MongoClient
|
from pymongo import MongoClient
|
||||||
|
|
||||||
import os
|
from src.config import Config
|
||||||
import sys
|
from src.singletons.database_singleton import DatabaseSingleton
|
||||||
|
|
||||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
from src.infra.server import app
|
||||||
sys.path.insert(0, BASE_DIR)
|
from src.controllers.user_controller import user_blueprint
|
||||||
|
from src.controllers.reservation_controller import reservation_blueprint
|
||||||
from config import Config
|
from src.controllers.health_controller import health_blueprint
|
||||||
from singletons.database_singleton import DatabaseSingleton
|
from src.controllers.room_controller import room_blueprint
|
||||||
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
|
|
||||||
|
|
||||||
CORS(app)
|
CORS(app)
|
||||||
app.config['JWT_SECRET_KEY'] = Config.JWT_SECRET_KEY
|
app.config['JWT_SECRET_KEY'] = Config.JWT_SECRET_KEY
|
||||||
@ -36,6 +31,3 @@ else:
|
|||||||
|
|
||||||
def create_app():
|
def create_app():
|
||||||
return app
|
return app
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
socketio.run(app, host=Config.APP_HOST, debug=False)
|
|
Loading…
x
Reference in New Issue
Block a user