2024-04-18 17:33:32 +08:00
|
|
|
from flask import Blueprint
|
2025-08-26 00:23:48 +08:00
|
|
|
from flask_restx import Namespace
|
2024-04-18 20:24:05 +08:00
|
|
|
|
2024-04-18 17:33:32 +08:00
|
|
|
from libs.external_api import ExternalApi
|
|
|
|
|
|
2024-08-26 15:29:10 +08:00
|
|
|
bp = Blueprint("inner_api", __name__, url_prefix="/inner/api")
|
2025-08-26 00:23:48 +08:00
|
|
|
|
|
|
|
|
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="/")
|
2024-04-18 17:33:32 +08:00
|
|
|
|
2025-09-10 01:54:26 +08:00
|
|
|
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]
|
2025-08-26 00:23:48 +08:00
|
|
|
|
|
|
|
|
api.add_namespace(inner_api_ns)
|