mirror of
https://github.com/lucaspalomodevelop/eventcally.git
synced 2026-03-13 00:07:22 +00:00
17 lines
418 B
Python
17 lines
418 B
Python
from project import app
|
|
from project.models import AdminUnit
|
|
from flask import render_template
|
|
from flask_security import roles_required
|
|
|
|
|
|
@app.route("/admin")
|
|
@roles_required("admin")
|
|
def admin():
|
|
return render_template("admin/admin.html")
|
|
|
|
|
|
@app.route("/admin/admin_units")
|
|
@roles_required("admin")
|
|
def admin_admin_units():
|
|
return render_template("admin/admin_units.html", admin_units=AdminUnit.query.all())
|