mirror of
https://github.com/langgenius/dify.git
synced 2026-02-01 16:41:58 +08:00
The backend part of the human in the loop (HITL) feature and relevant architecture / workflow engine changes. Signed-off-by: yihong0618 <zouzou0208@gmail.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: -LAN- <laipz8200@outlook.com> Co-authored-by: 盐粒 Yanli <yanli@dify.ai> Co-authored-by: CrabSAMA <40541269+CrabSAMA@users.noreply.github.com> Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: yihong <zouzou0208@gmail.com> Co-authored-by: Joel <iamjoel007@gmail.com>
60 lines
1.0 KiB
Python
60 lines
1.0 KiB
Python
from flask import Blueprint
|
|
from flask_restx import Namespace
|
|
|
|
from libs.external_api import ExternalApi
|
|
|
|
bp = Blueprint("web", __name__, url_prefix="/api")
|
|
|
|
api = ExternalApi(
|
|
bp,
|
|
version="1.0",
|
|
title="Web API",
|
|
description="Public APIs for web applications including file uploads, chat interactions, and app management",
|
|
)
|
|
|
|
# Create namespace
|
|
web_ns = Namespace("web", description="Web application API operations", path="/")
|
|
|
|
from . import (
|
|
app,
|
|
audio,
|
|
completion,
|
|
conversation,
|
|
feature,
|
|
files,
|
|
forgot_password,
|
|
human_input_form,
|
|
login,
|
|
message,
|
|
passport,
|
|
remote_files,
|
|
saved_message,
|
|
site,
|
|
workflow,
|
|
workflow_events,
|
|
)
|
|
|
|
api.add_namespace(web_ns)
|
|
|
|
__all__ = [
|
|
"api",
|
|
"app",
|
|
"audio",
|
|
"bp",
|
|
"completion",
|
|
"conversation",
|
|
"feature",
|
|
"files",
|
|
"forgot_password",
|
|
"human_input_form",
|
|
"login",
|
|
"message",
|
|
"passport",
|
|
"remote_files",
|
|
"saved_message",
|
|
"site",
|
|
"web_ns",
|
|
"workflow",
|
|
"workflow_events",
|
|
]
|