Browse Source

maj apikaz

master
fabrice.regnier 2 weeks ago
parent
commit
544b383228
  1. 4
      dockers/apikaz/source/app.py

4
dockers/apikaz/source/app.py

@ -8,6 +8,10 @@ def welcome():
# return a json
return jsonify({'status': 'api working'})
@app.route('/hello')
def hello():
return 'Hello, World'
if __name__ == '__main__':
#define the localhost ip and the port that is going to be used
# in some future article, we are going to use an env variable instead a hardcoded port

Loading…
Cancel
Save