mirror of
https://github.com/langgenius/dify.git
synced 2025-11-10 00:11:30 +00:00
Signed-off-by: -LAN- <laipz8200@outlook.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com> Co-authored-by: -LAN- <laipz8200@outlook.com>
23 lines
704 B
Python
23 lines
704 B
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, and plugin communication",
|
|
)
|
|
|
|
# Create namespace
|
|
inner_api_ns = Namespace("inner_api", description="Internal API operations", path="/")
|
|
|
|
from . import mail as _mail # pyright: ignore[reportUnusedImport]
|
|
from .plugin import plugin as _plugin # pyright: ignore[reportUnusedImport]
|
|
from .workspace import workspace as _workspace # pyright: ignore[reportUnusedImport]
|
|
|
|
api.add_namespace(inner_api_ns)
|