Aggiunta homepage v1

This commit is contained in:
2026-02-13 09:06:45 +01:00
parent ce5c7d237d
commit 3390984681

7
app.py
View File

@@ -1,4 +1,11 @@
from flask import Flask
app = Flask(__name__)
@app.route("/", methods=["GET"])
def home():
html = "<h1>Home page API REST Compiti</h1><h2>ciao, 3cx merda</h2>"
html += "<a href=\"/doc.html\">Documentazione</a>"
return html, 200
app.run(debug=True)