move kafka to threadings and setup database connection
This commit is contained in:
@@ -3,6 +3,7 @@ from flask_cors import CORS
|
||||
from app.config import Config
|
||||
from app.routes import auth_bp, autocall_bp
|
||||
from app.errors import method_not_allowed, unsupported_media_type
|
||||
from app.extensions import db
|
||||
|
||||
|
||||
def create_app():
|
||||
@@ -23,4 +24,7 @@ def create_app():
|
||||
app.register_error_handler(405, method_not_allowed)
|
||||
app.register_error_handler(415, unsupported_media_type)
|
||||
|
||||
# Database
|
||||
db.init_app(app)
|
||||
|
||||
return app
|
||||
|
||||
Reference in New Issue
Block a user