18 lines
342 B
Python
18 lines
342 B
Python
from flask import Flask, request, jsonify
|
|
|
|
app = Flask(__name__)
|
|
|
|
@app.route('/alive', methods=['GET'])
|
|
def get_healthcheck():
|
|
response = {
|
|
"alive": True
|
|
}
|
|
return jsonify(response)
|
|
|
|
@app.route('/')
|
|
def hello_world():
|
|
return 'Health check application.'
|
|
|
|
if __name__ == "__main__":
|
|
app.run(host="0.0.0.0", port=9999)
|