from flask import Blueprint, render_template, current_app, Response board_bp = Blueprint("board", __name__) FAVICON_SVG = "" @board_bp.route("/") def root(): # convenience: redirect to admin with token if configured from flask import redirect, url_for, current_app t = current_app.config.get("COMBAT_TOKEN", "changeme") return redirect(url_for("admin.admin", token=t)) @board_bp.route("/board") def board(): return render_template("board.html", name=current_app.config["PRODUCT_NAME"], subtitle=current_app.config["PRODUCT_SUBTITLE"]) @board_bp.route("/favicon.svg") def favicon_svg(): return Response(FAVICON_SVG, 200, {"Content-Type": "image/svg+xml"})