You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mailu/admin/freeposte/views/admin.py

19 lines
426 B
Python

from freeposte import app, db, models, forms, utils
from flask.ext import login as flask_login
import os
import flask
@app.route('/status', methods=['GET'])
@flask_login.login_required
def status():
utils.require_global_admin()
return flask.render_template('admin/status.html')
@app.route('/admins', methods=['GET'])
@flask_login.login_required
def admins():
return flask.render_template('admin/admins.html')