Seth McKnight
Add CI/CD workflow and Dockerfile for application deployment (#2)
c4b28eb
raw
history blame
364 Bytes
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)