Add Web UI
This commit is contained in:
11
ui/app.py
Normal file
11
ui/app.py
Normal file
@@ -0,0 +1,11 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user