serverboerse/monitor.py

10 lines
224 B
Python
Raw Normal View History

2021-05-02 10:19:17 +00:00
from flask import Flask, render_template
from classes.api import SBAPI
app = Flask(__name__)
@app.route('/')
def home_view():
servers = SBAPI().get_servers()
return render_template("monitor.html", servers=servers)