mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-05-13 02:08:14 +08:00
19 lines
423 B
Python
19 lines
423 B
Python
"""
|
|
Extension for initializing repositories.
|
|
|
|
This extension registers repository implementations with the RepositoryFactory.
|
|
"""
|
|
|
|
from core.repositories.repository_registry import register_repositories
|
|
from dify_app import DifyApp
|
|
|
|
|
|
def init_app(_app: DifyApp) -> None:
|
|
"""
|
|
Initialize repository implementations.
|
|
|
|
Args:
|
|
_app: The Flask application instance (unused)
|
|
"""
|
|
register_repositories()
|