"""Dashboard routes — main console page and summary. Serves the root page and /console with router status overview. Ported from net.i2p.router.web.helpers.SummaryHelper / HomeHelper. """ from __future__ import annotations from flask import Blueprint, render_template, current_app bp = Blueprint("dashboard", __name__) @bp.route("/") @bp.route("/console") def index(): """Render the main dashboard page.""" ctx = current_app.config["CONSOLE_CONTEXT"] return render_template( "dashboard.html", status=ctx.status, network=ctx.network_status, version=ctx.version, )