2023-05-15 08:51:32 +08:00
|
|
|
from flask import Blueprint
|
2024-04-18 20:24:05 +08:00
|
|
|
|
2023-05-15 08:51:32 +08:00
|
|
|
from libs.external_api import ExternalApi
|
|
|
|
|
2024-11-01 15:51:22 +08:00
|
|
|
from .files import FileApi
|
|
|
|
from .remote_files import RemoteFileInfoApi, RemoteFileUploadApi
|
|
|
|
|
2024-08-26 15:29:10 +08:00
|
|
|
bp = Blueprint("web", __name__, url_prefix="/api")
|
2023-05-15 08:51:32 +08:00
|
|
|
api = ExternalApi(bp)
|
|
|
|
|
2024-11-01 15:51:22 +08:00
|
|
|
# Files
|
|
|
|
api.add_resource(FileApi, "/files/upload")
|
|
|
|
|
|
|
|
# Remote files
|
|
|
|
api.add_resource(RemoteFileInfoApi, "/remote-files/<path:url>")
|
|
|
|
api.add_resource(RemoteFileUploadApi, "/remote-files/upload")
|
2023-05-15 08:51:32 +08:00
|
|
|
|
2025-06-09 17:19:53 +09:00
|
|
|
from . import (
|
|
|
|
app,
|
|
|
|
audio,
|
|
|
|
completion,
|
|
|
|
conversation,
|
|
|
|
feature,
|
|
|
|
forgot_password,
|
|
|
|
login,
|
|
|
|
message,
|
|
|
|
passport,
|
|
|
|
saved_message,
|
|
|
|
site,
|
|
|
|
workflow,
|
|
|
|
)
|