You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
337 B
Python
12 lines
337 B
Python
from iti.applications.extensions import broadcast_execute
|
|
from iti.applications.routes.front import bp as frontend_bp
|
|
|
|
|
|
def init_routes(app):
|
|
# 前端路由注册(可选)
|
|
if app.config.get("FRONTEND_ENABLED", False):
|
|
app.register_blueprint(frontend_bp)
|
|
|
|
# 插件初始化
|
|
broadcast_execute(app, "event_init")
|