Creado un "panel" de administracion, basicamente son links a las rutas para crear cosas :3

This commit is contained in:
Daniel Cortes
2019-02-16 03:10:57 -03:00
parent a473173ce4
commit 325659d1f5
3 changed files with 14 additions and 3 deletions

View File

@@ -1,9 +1,11 @@
from flask import Blueprint, flash, g, redirect, render_template, request, session, url_for
from www.db import get_db
from www.auth import admin_required
bp = Blueprint('admin', __name__, url_prefix='/admin')
@bp.route('/panel')
@admin_required
def panel():
return render_template('admin/panel.html')