From 8aa4e81297e6b7e1abcaa3729857cde0578d7c5e Mon Sep 17 00:00:00 2001 From: Kraiem Taha Yassine Date: Fri, 13 Aug 2021 18:23:47 +0200 Subject: [PATCH] feat(api): wrap funnels response in data (#155) --- api/chalicelib/blueprints/bp_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/chalicelib/blueprints/bp_core.py b/api/chalicelib/blueprints/bp_core.py index e2ef487ed..18773f68c 100644 --- a/api/chalicelib/blueprints/bp_core.py +++ b/api/chalicelib/blueprints/bp_core.py @@ -822,7 +822,7 @@ def get_funnel(projectId, funnelId, context): project_id=projectId) if data is None: return {"errors": ["funnel not found"]} - return data + return {"data": data} @app.route('/{projectId}/funnels/{funnelId}', methods=['POST', 'PUT'])