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 620B

12345678910111213141516171819202122232425262728293031
  1. from flask import Blueprint
  2. from libs.external_api import ExternalApi
  3. from .files import FileApi
  4. from .remote_files import RemoteFileInfoApi, RemoteFileUploadApi
  5. bp = Blueprint("web", __name__, url_prefix="/api")
  6. api = ExternalApi(bp)
  7. # Files
  8. api.add_resource(FileApi, "/files/upload")
  9. # Remote files
  10. api.add_resource(RemoteFileInfoApi, "/remote-files/<path:url>")
  11. api.add_resource(RemoteFileUploadApi, "/remote-files/upload")
  12. from . import (
  13. app,
  14. audio,
  15. completion,
  16. conversation,
  17. feature,
  18. forgot_password,
  19. login,
  20. message,
  21. passport,
  22. saved_message,
  23. site,
  24. workflow,
  25. )