Update api.py

This commit is contained in:
Alex Jauneau 2019-04-25 17:45:30 +02:00 committed by GitHub
parent 0a25528b97
commit d68f6d2f9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ app = Flask(__name__)
@app.route('/') @app.route('/')
def index(): def index():
""" """
Fait un call à l'API backend et renvoit le resultat au format JSON Renvoit un phrase dans un dictionnaire au format JSON
""" """
response = {} response = {}
response['body'] = "Je suis une réponse du backend" response['body'] = "Je suis une réponse du backend"