messing stuff up

This commit is contained in:
2025-06-03 20:46:11 -05:00
parent e3ee3e6708
commit e8acd6bb20
25 changed files with 300 additions and 51 deletions

11
plugins/admin/routes.py Normal file
View File

@ -0,0 +1,11 @@
from flask import Blueprint, render_template
from flask_login import login_required, current_user
bp = Blueprint('admin', __name__, template_folder='templates')
@bp.route('/admin')
@login_required
def admin_dashboard():
if current_user.role != 'admin':
return "Access denied", 403
return render_template('admin/admin_dashboard.html')