管理后台 server 使用蓝图模式,降低维护成本,降低修改功能时对其他模块的影响

This commit is contained in:
liuwei
2025-04-03 11:41:10 +08:00
parent 6a50faba7f
commit 4cd1008f3a
9 changed files with 738 additions and 633 deletions

View File

@@ -0,0 +1,10 @@
from flask import Blueprint, render_template
from .auth import login_required
# 创建主页蓝图
main_bp = Blueprint('main', __name__)
@main_bp.route('/')
@login_required
def index():
return render_template('index.html')