Create the template for the Flask framework
This commit is contained in:
parent
db65646400
commit
c0f9876184
14 changed files with 266 additions and 0 deletions
11
app/routes/audit.py
Normal file
11
app/routes/audit.py
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue