refactor: assembling the app features in modular way (#9129)

Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
Bowen Liang 2024-11-30 23:05:22 +08:00 • committed by GitHub
commit 9b46b02717
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
30 changed files with 396 additions and 318 deletions

View file

@ -1,5 +1,9 @@
import flask_migrate
from dify_app import DifyApp
def init(app, db):
def init_app(app: DifyApp):
import flask_migrate
from extensions.ext_database import db
flask_migrate.Migrate(app, db)