Files
WebTech/application/dash/views.py

15 lines
427 B
Python

from flask import Blueprint, render_template
from flask_login import login_required # type: ignore
from application.dash.models import Service
dash_blueprint = Blueprint("dash", __name__, template_folder="templates")
# Routes
@dash_blueprint.route("/", methods=["GET", "POST"])
@login_required
def index():
services = Service.query.all() # type: ignore
return render_template("dashboard.html", services=services)