mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 05:59:25 +08:00
站点页面和计划页面登录检查
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user