管理后台 server 使用蓝图模式,降低维护成本,降低修改功能时对其他模块的影响
This commit is contained in:
@@ -129,9 +129,9 @@ class DashboardServer:
|
||||
# 注册蓝图
|
||||
app.register_blueprint(auth_bp)
|
||||
app.register_blueprint(main_bp)
|
||||
app.register_blueprint(contacts_bp, url_prefix='/contacts')
|
||||
app.register_blueprint(robot_bp, url_prefix='/robot')
|
||||
app.register_blueprint(messages_bp, url_prefix='/messages')
|
||||
app.register_blueprint(contacts_bp)
|
||||
app.register_blueprint(robot_bp)
|
||||
app.register_blueprint(messages_bp)
|
||||
app.register_blueprint(stats_bp)
|
||||
app.register_blueprint(system_bp)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user