Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1234567891011121314151617181920
  1. from flask import Blueprint
  2. from flask_restx import Namespace
  3. from libs.external_api import ExternalApi
  4. bp = Blueprint("files", __name__, url_prefix="/files")
  5. api = ExternalApi(
  6. bp,
  7. version="1.0",
  8. title="Files API",
  9. description="API for file operations including upload and preview",
  10. doc="/docs", # Enable Swagger UI at /files/docs
  11. )
  12. files_ns = Namespace("files", description="File operations", path="/")
  13. from . import image_preview, tool_files, upload # pyright: ignore[reportUnusedImport]
  14. api.add_namespace(files_ns)