feat(api): wrap funnels response in data (#155)

This commit is contained in:
Kraiem Taha Yassine 2021-08-13 18:23:47 +02:00 committed by GitHub
parent 6e01be8ebd
commit 8aa4e81297
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'])