You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

__init__.py 738B

123456789101112131415161718192021222324252627282930313233343536
  1. from flask import Blueprint
  2. from flask_restx import Namespace
  3. from libs.external_api import ExternalApi
  4. bp = Blueprint("web", __name__, url_prefix="/api")
  5. api = ExternalApi(
  6. bp,
  7. version="1.0",
  8. title="Web API",
  9. description="Public APIs for web applications including file uploads, chat interactions, and app management",
  10. doc="/docs", # Enable Swagger UI at /api/docs
  11. )
  12. # Create namespace
  13. web_ns = Namespace("web", description="Web application API operations", path="/")
  14. from . import (
  15. app,
  16. audio,
  17. completion,
  18. conversation,
  19. feature,
  20. files,
  21. forgot_password,
  22. login,
  23. message,
  24. passport,
  25. remote_files,
  26. saved_message,
  27. site,
  28. workflow,
  29. )
  30. api.add_namespace(web_ns)