<gh_stars>0
from flask import Flask
from healthcheck import HealthCheck, EnvironmentDump

app = Flask(__name__)

def app_status():
    return True, "health ok"

health = HealthCheck()
health.add_check(app_status)

app.add_url_rule("/healthcheck", "healthcheck", view_func=lambda: health.run())

@app.route("/")
def hello():
    return "Hello, World!"

from flask import Flask
from healthcheck import HealthCheck, EnvironmentDump

app = Flask(__name__)

def app_status():
    return True, "health ok"

health = HealthCheck()
health.add_check(app_status)

app.add_url_rule("/healthcheck", "healthcheck", view_func=lambda: health.run())

@app.route("/")
def hello():
    return "Hello, World!"