push
This commit is contained in:
0
app/notifications/__init__.py
Normal file
0
app/notifications/__init__.py
Normal file
12
app/notifications/routes.py
Normal file
12
app/notifications/routes.py
Normal file
@@ -0,0 +1,12 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user