mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 23:18:05 +08:00
test: improve unit tests for controllers.inner_api (#32203)
This commit is contained in:
@ -114,6 +114,7 @@ def get_user_tenant(view_func: Callable[P, R]):
|
||||
|
||||
def plugin_data(view: Callable[P, R] | None = None, *, payload_type: type[BaseModel]):
|
||||
def decorator(view_func: Callable[P, R]):
|
||||
@wraps(view_func)
|
||||
def decorated_view(*args: P.args, **kwargs: P.kwargs):
|
||||
try:
|
||||
data = request.get_json()
|
||||
|
||||
Reference in New Issue
Block a user