Set flask config 'JSON_SORT_KEYS' to false

This commit is contained in:
Shreya 2020-07-31 22:11:39 +05:30 committed by VakarisZ
parent c59be36909
commit f6e362b1c8
1 changed files with 1 additions and 0 deletions

View File

@ -143,6 +143,7 @@ def init_api_resources(api):
def init_app(mongo_url):
app = Flask(__name__)
app.config['JSON_SORT_KEYS'] = False
api = flask_restful.Api(app)
api.representations = {'application/json': output_json}