mirror of https://github.com/midoks/mdserver-web
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
892 B
23 lines
892 B
# 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
|
|
|
|
from admin.user_login_check import panel_login_required
|
|
|
|
import thisdb
|
|
|
|
blueprint = Blueprint('soft', __name__, url_prefix='/soft', template_folder='../../templates')
|
|
@blueprint.route('/index', endpoint='index')
|
|
@panel_login_required
|
|
def index():
|
|
name = thisdb.getOption('template', default='default')
|
|
return render_template('%s/soft.html' % name) |