Restructure code

This commit is contained in:
Patrick Jentsch
2022-04-25 11:32:10 +02:00
parent fc1389e8b1
commit 10b5254e82
6 changed files with 53 additions and 50 deletions

View File

@ -43,8 +43,8 @@ def create_app(config: Config = Config) -> Flask:
message_queue=app.config['NOPAQUE_SOCKETIO_MESSAGE_QUEUE_URI']
)
from .events import socketio as socketio_events
from .events import sqlalchemy as sqlalchemy_events
from app import socketio_event_listeners
from app import sqlalchemy_event_listeners
from .admin import bp as admin_blueprint
app.register_blueprint(admin_blueprint, url_prefix='/admin')