14 lines
453 B
Python
14 lines
453 B
Python
|
|
from flask import Blueprint
|
|||
|
|
from .buy import inbound_buy_bp
|
|||
|
|
# 后续如果有 semi.py 或 product.py,在这里导入
|
|||
|
|
# from .semi import inbound_semi_bp
|
|||
|
|
|
|||
|
|
# 创建聚合蓝图
|
|||
|
|
inbound_bp = Blueprint('inbound', __name__)
|
|||
|
|
|
|||
|
|
# 挂载子模块。url_prefix 会进行路径拼接
|
|||
|
|
# 路径变为:/buy/...
|
|||
|
|
inbound_bp.register_blueprint(inbound_buy_bp, url_prefix='/buy')
|
|||
|
|
|
|||
|
|
# 后续扩展:
|
|||
|
|
# inbound_bp.register_blueprint(inbound_semi_bp, url_prefix='/semi')
|