serverboerse/monitor.py

10 lines
No EOL
224 B
Python

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)