mirror of
https://github.com/langgenius/dify.git
synced 2026-07-08 22:36:37 +08:00
Co-authored-by: yunlu.wen <yunlu.wen@dify.ai> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Yunlu Wen <wylswz@163.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: Yanli 盐粒 <yanli@dify.ai> Co-authored-by: 盐粒 Yanli <beautyyuyanli@gmail.com> Co-authored-by: zyssyz123 <916125788@qq.com> Co-authored-by: 盐粒 Yanli <mail@yanli.one>
44 lines
1.1 KiB
Python
44 lines
1.1 KiB
Python
from flask import Blueprint
|
|
from flask_restx import Namespace
|
|
|
|
from libs.external_api import ExternalApi
|
|
|
|
bp = Blueprint("inner_api", __name__, url_prefix="/inner/api")
|
|
|
|
api = ExternalApi(
|
|
bp,
|
|
version="1.0",
|
|
title="Inner API",
|
|
description="Internal APIs for enterprise features, billing, knowledge retrieval, and plugin communication",
|
|
)
|
|
|
|
# Create namespace
|
|
inner_api_ns = Namespace("inner_api", description="Internal API operations", path="/")
|
|
|
|
from . import mail as _mail
|
|
from . import runtime_credentials as _runtime_credentials
|
|
from .agent import tools as _agent_tools
|
|
from .app import dsl as _app_dsl
|
|
from .knowledge import retrieval as _knowledge_retrieval
|
|
from .plugin import agent_config as _agent_config
|
|
from .plugin import agent_drive as _agent_drive
|
|
from .plugin import plugin as _plugin
|
|
from .workspace import workspace as _workspace
|
|
|
|
api.add_namespace(inner_api_ns)
|
|
|
|
__all__ = [
|
|
"_agent_config",
|
|
"_agent_drive",
|
|
"_agent_tools",
|
|
"_app_dsl",
|
|
"_knowledge_retrieval",
|
|
"_mail",
|
|
"_plugin",
|
|
"_runtime_credentials",
|
|
"_workspace",
|
|
"api",
|
|
"bp",
|
|
"inner_api_ns",
|
|
]
|