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

This commit is contained in:
Mr Chen
2024-12-22 18:50:58 +08:00
parent bcf6808e49
commit 0e0cc248fa
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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)
+1
View File
@@ -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')