diff --git a/py/endpoints.py b/py/endpoints.py index face6eb..cdf1055 100644 --- a/py/endpoints.py +++ b/py/endpoints.py @@ -38,7 +38,8 @@ async def workflows(request): else: os.makedirs(json_path) result["No file in worflows/api folder"] = {"inputs": {}, "outputs": {}} - + if result == {}: + result["No file in worflows/api folder"] = {"inputs": {}, "outputs": {}} return web.json_response(result, content_type='application/json')