messing stuff up
This commit is contained in:
@ -7,13 +7,6 @@ bp = Blueprint('core_ui', __name__, template_folder='templates')
|
||||
def home():
|
||||
return render_template('core_ui/home.html')
|
||||
|
||||
@bp.route('/admin')
|
||||
@login_required
|
||||
def admin_dashboard():
|
||||
if current_user.role != 'admin':
|
||||
return "Access denied", 403
|
||||
return render_template('core_ui/admin_dashboard.html')
|
||||
|
||||
@bp.route('/health')
|
||||
def health():
|
||||
return 'OK', 200
|
Reference in New Issue
Block a user