Files
KCGL/inventory-backend/app/api/v1/inbound/__init__.py

14 lines
453 B
Python
Raw Normal View History

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')