This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from flask import Response | |
| import json | |
| def respond_with_success(data = ''): | |
| return Response( | |
| response=json.dumps(data), | |
| status=200, | |
| mimetype='application/json' |