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

14 lines
453 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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