12 lines
266 B
Python
12 lines
266 B
Python
from flask import Flask, render_template
|
|
from cloudflare import get_dns_status
|
|
|
|
app = Flask(__name__)
|
|
|
|
@app.route("/")
|
|
def index():
|
|
return render_template("index.html", records=get_dns_status())
|
|
|
|
if __name__ == "__main__":
|
|
app.run(host="0.0.0.0", port=8080)
|