from flask import Blueprint, render_template
from webapp.user.decorators import admin_required

bp = Blueprint("admin", __name__, url_prefix="/admin")


@bp.route("/")
@admin_required
def admin_index():
    title = "Панель управления"
    return render_template("admin/admin_index.html", page_title=title)
