From 2cb57d0b12c97538241d9a413844910d6fb5d19a Mon Sep 17 00:00:00 2001 From: Archerfou Date: Thu, 25 Apr 2019 18:04:08 +0200 Subject: [PATCH] =?UTF-8?q?Modification=20de=20la=20r=C3=A9ponse=20api=20f?= =?UTF-8?q?rontend?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api-frontend/api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api-frontend/api.py b/api-frontend/api.py index c620ab1..e1698a6 100755 --- a/api-frontend/api.py +++ b/api-frontend/api.py @@ -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)