File size: 364 Bytes
e3e3a84
 
 
 
c4b28eb
e3e3a84
 
 
 
 
 
 
c4b28eb
e3e3a84
 
 
 
 
 
 
c4b28eb
e3e3a84
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from flask import Flask, jsonify, render_template

app = Flask(__name__)


@app.route("/")
def index():
    """
    Renders the main page.
    """
    return render_template("index.html")


@app.route("/health")
def health():
    """
    Health check endpoint.
    """
    return jsonify({"status": "ok"}), 200


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