Skip to content

Commit

Permalink
Greeting App updated
Browse files Browse the repository at this point in the history
- `health` endpoint added
  • Loading branch information
juanroldan1989 committed Jan 31, 2025
1 parent 32bfa5b commit a9b07bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/greeting/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@
def get_greeting():
return jsonify(greeting=random.choice(greetings))

@app.route('/health', methods=['GET'])
def health():
return jsonify(status='healthy')

if __name__ == "__main__":
app.run(host="0.0.0.0", port=5002)

0 comments on commit a9b07bc

Please sign in to comment.