From 11e4e393e8b4c53676f433850b8e0969f831e549 Mon Sep 17 00:00:00 2001 From: Andrea Fiorencis Date: Thu, 26 Feb 2026 13:28:35 +0100 Subject: [PATCH] Aggiunta web ui base --- app.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/app.py b/app.py index bdcfb4a..fc7bde9 100644 --- a/app.py +++ b/app.py @@ -48,4 +48,21 @@ def delete_compito(id): return jsonify(ciscomerda), 200 return jsonify([]), 404 +@app.route("/ui") +def web_ui(): + # Tabella compiti + html = "" + for ciscomerda in compiti: + html += "" + html += f"" + html += "" + html += "
{ciscomerda["descrizione"]}
" + + html += "
" + html += "" + html += "" + html += "
" + + return html, 200 + app.run("0.0.0.0")