Skip to content

Commit

Permalink
added health check in app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
piyushbhavsarr authored Jan 9, 2024
1 parent b702dba commit 84afe4f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,10 @@ def new_quote():
sentiment, summary = analyze_quote(quote)
return jsonify({'quote': quote, 'sentiment': sentiment, 'summary': summary})

@app.route('/health')
def health_check():
return jsonify({"status": "healthy"}), 200


if __name__ == '__main__':
app.run(debug=True)

0 comments on commit 84afe4f

Please sign in to comment.