10 lines
224 B
Python
10 lines
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)
|