diff --git a/src/ui/main.py b/src/ui/main.py index 3fe6a9760..c52d5ec9b 100755 --- a/src/ui/main.py +++ b/src/ui/main.py @@ -1299,7 +1299,12 @@ def custom_plugin(plugin): try: # Try to get the custom plugin custom function and call it method = getattr(actions, plugin) - res = method() + if request.args: + res = method(**request.args.to_dict()) + elif request.json: + res = method(**request.json) + else: + res = method() except AttributeError: message = f'The plugin "{plugin}" does not have a "{plugin}" method' error = 404