mirror of https://github.com/midoks/mdserver-web
parent
d3e228bcd6
commit
ce2affb119
@ -0,0 +1,17 @@ |
||||
# 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 |
||||
|
||||
blueprint = Blueprint('site', __name__, url_prefix='/site', template_folder='../../templates/default') |
||||
@blueprint.route('/index', endpoint='index') |
||||
def index(): |
||||
return render_template('site.html', data={}) |
@ -1,7 +1,11 @@ |
||||
|
||||
from .dashboard import blueprint as DashboardModule |
||||
from .site import blueprint as SiteModule |
||||
from .task import blueprint as TaskModule |
||||
|
||||
def get_submodules(): |
||||
return [ |
||||
DashboardModule, |
||||
SiteModule, |
||||
TaskModule, |
||||
] |
||||
|
@ -0,0 +1,17 @@ |
||||
# 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 |
||||
|
||||
blueprint = Blueprint('task', __name__, url_prefix='/task', template_folder='../../templates/default') |
||||
@blueprint.route('/count', endpoint='task_count') |
||||
def task_count(): |
||||
return "0" |
Loading…
Reference in new issue