站点页面和计划页面登录检查

pull/664/head
Mr Chen 5 months ago
parent bcf6808e49
commit 0e0cc248fa
  1. 1
      web/admin/crontab/__init__.py
  2. 1
      web/admin/site/site.py

@ -20,6 +20,7 @@ import thisdb
blueprint = Blueprint('crontab', __name__, url_prefix='/crontab', template_folder='../../templates')
@blueprint.route('/index', endpoint='index')
@panel_login_required
def index():
name = thisdb.getOption('template', default='default')
return render_template('%s/crontab.html' % name)

@ -22,6 +22,7 @@ import thisdb
blueprint = Blueprint('site', __name__, url_prefix='/site', template_folder='../../templates/default')
@blueprint.route('/index', endpoint='index')
@panel_login_required
def index():
return render_template('site.html')

Loading…
Cancel
Save