Skip to content

Commit

Permalink
add ping endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk authored Mar 12, 2024
1 parent a20ada6 commit 17e3f0a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,10 @@ def proxy():
return jsonify(error="Invalid parameter", detail=str(e)), 400


@app.route('/ping', methods=["GET"])
def ping():
return jsonify({'status': 'ok', 'message': 'Service is up and running'})


if __name__ == "__main__":
app.run(port=5000)

0 comments on commit 17e3f0a

Please sign in to comment.