mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 11:26:52 +08:00
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:
@@ -5,6 +5,7 @@ from typing import Union
|
||||
from flask import Flask
|
||||
|
||||
from configs import dify_config
|
||||
from dify_app import DifyApp
|
||||
from extensions.storage.base_storage import BaseStorage
|
||||
from extensions.storage.storage_type import StorageType
|
||||
|
||||
@@ -122,5 +123,5 @@ class Storage:
|
||||
storage = Storage()
|
||||
|
||||
|
||||
def init_app(app: Flask):
|
||||
def init_app(app: DifyApp):
|
||||
storage.init_app(app)
|
||||
|
||||
Reference in New Issue
Block a user