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