Adding flask and heartbeat

This commit is contained in:
2026-03-16 16:37:28 -07:00
parent d4ebfb27da
commit d049b404c2
4 changed files with 241 additions and 1 deletions

21
src/app.py Normal file
View File

@@ -0,0 +1,21 @@
from flask import Flask, jsonify
from datetime import datetime, timezone
app = Flask(__name__)
@app.get("/heartbeat")
def heartbeat() -> tuple:
return (
jsonify(
{
"status": "ok",
"timestamp": datetime.now(timezone.utc).isoformat(),
}
),
200,
)
if __name__ == "__main__":
app.run(debug=True)