feat: Quart app factory with health endpoint
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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")
|
||||
Reference in New Issue
Block a user