Simple Linux Panel
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.
mdserver-web/web/admin/site/__init__.py

29 lines
1.0 KiB

7 months ago
# 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
7 months ago
from utils.mwplugin import MwPlugin
7 months ago
blueprint = Blueprint('site', __name__, url_prefix='/site', template_folder='../../templates/default')
@blueprint.route('/index', endpoint='index')
def index():
7 months ago
return render_template('site.html', data={})
7 months ago
# 插件列表
@blueprint.route('/list', endpoint='list', methods=['GET','POST'])
def list():
pg = MwPlugin.instance()
# print(pg.getList())
return pg.getList()
7 months ago
@blueprint.route('/get_site_types', endpoint='get_site_types',methods=['POST'])
def get_site_types():
return []