2025-10-12 20:14:45 +02:00
|
|
|
#!/bin/python3
|
|
|
|
|
|
|
|
|
|
from flask import Flask, render_template
|
|
|
|
|
|
|
|
|
|
app = Flask(__name__)
|
|
|
|
|
|
|
|
|
|
@app.route("/")
|
|
|
|
|
def index():
|
|
|
|
|
return "with Flask"
|
|
|
|
|
return render_template("/var/www/html/index.html")
|
|
|
|
|
|
|
|
|
|
|
2025-10-12 20:16:47 +02:00
|
|
|
app.run(host="127.0.0.1", port=5000)
|