Files
FabledSteward/fablednetmon/dashboard/routes.py
T

12 lines
327 B
Python

from quart import Blueprint, render_template
from fablednetmon.auth.middleware import require_role
from fablednetmon.models.users import UserRole
dashboard_bp = Blueprint("dashboard", __name__)
@dashboard_bp.get("/")
@require_role(UserRole.viewer)
async def index():
return await render_template("dashboard/index.html")