Modification de la réponse api frontend
This commit is contained in:
parent
0a25528b97
commit
2cb57d0b12
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user