Create the template for the Flask framework

This commit is contained in:
Charles Descamps 2025-06-03 16:50:03 -07:00
parent db65646400
commit c0f9876184
14 changed files with 266 additions and 0 deletions

11
app/routes/audit.py Normal file
View file

@ -0,0 +1,11 @@
from flask import Blueprint, render_template
from flask_login import login_required
from app.models import AuditLog
audit_bp = Blueprint('audit', __name__, url_prefix='/audit')
@audit_bp.route('/log')
@login_required
def log():
logs = AuditLog.query.order_by(AuditLog.timestamp.desc()).all()
return render_template('audit/log.html', logs=logs)