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.

2 年之前
2 年之前
2 年之前
2 年之前
123456789101112131415161718
  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 app, audio, completion, conversation, feature, message, passport, saved_message, site, workflow