mdserver-web/web/admin/monitor/__init__.py

23 lines
901 B
Python
Raw Normal View History

2024-10-19 09:52:59 -04:00
# coding:utf-8
# ---------------------------------------------------------------------------------
# MW-Linux面板
# ---------------------------------------------------------------------------------
# copyright (c) 2018-∞(https://github.com/midoks/mdserver-web) All rights reserved.
# ---------------------------------------------------------------------------------
# Author: midoks <midoks@163.com>
# ---------------------------------------------------------------------------------
from flask import Blueprint, render_template
2024-10-29 12:55:34 -04:00
from admin.user_login_check import panel_login_required
2024-11-20 03:40:06 -05:00
import thisdb
blueprint = Blueprint('monitor', __name__, url_prefix='/monitor', template_folder='../../templates')
2024-10-19 09:52:59 -04:00
@blueprint.route('/index', endpoint='index')
2024-10-29 12:55:34 -04:00
@panel_login_required
2024-10-19 09:52:59 -04:00
def index():
2024-11-20 03:40:06 -05:00
name = thisdb.getOption('template', default='default')
return render_template('%s/monitor.html' % name)