from flask import Blueprint, render_template from flask_login import login_required from app.models.invoice import NotificationLog bp = Blueprint('notifications', __name__, url_prefix='/notifications') @bp.route('/') @login_required def index(): logs = NotificationLog.query.order_by(NotificationLog.created_at.desc()).limit(100).all() return render_template('notifications/index.html', logs=logs)