Modification de la réponse api frontend

This commit is contained in:
Archerfou 2019-04-25 18:04:08 +02:00
parent 0a25528b97
commit 2cb57d0b12

View File

@ -35,8 +35,10 @@ def index():
if api_call.status_code != 200:
response['error_message'] = 'GET / on backend API {}'.format(
api_call.status_code)
response['status'] = '[ERROR]'
else:
response = api_call.json()
response['status'] = '[SUCESS]'
response['return'] = api_call.json()
return jsonify(response)