Switched from browser refresh to update webpage with API fetch

Added an ID field to the API. Added a fetch script that updates the webpage every second.
This commit is contained in:
2025-08-31 14:06:55 +02:00
parent f2a006b397
commit 6103a34ae1
3 changed files with 42 additions and 2 deletions

2
app.py
View File

@@ -14,7 +14,7 @@ def homepage():
return render_template("home.html", services=services)
@app.route("/status")
@app.route("/api/status")
def status():
return jsonify([s.to_dict() for s in services])