PCv5/app/routes/admin/index.py

10 lines
232 B
Python
Raw Normal View History

2019-06-06 01:45:39 +02:00
from app.utils.priv_required import priv_required
from app.utils.render import render
from app import app
2019-06-06 23:24:14 +02:00
@app.route('/admin', methods=['GET'])
2019-06-06 01:45:39 +02:00
@priv_required('access-admin-panel')
def adm():
return render('admin/index.html')