Phase 6 of storefront restructure plan - delete legacy files and convert remaining cart files to re-exports. Deleted legacy storefront route files (now served from modules): - app/api/v1/storefront/auth.py (→ customers module) - app/api/v1/storefront/profile.py (→ customers module) - app/api/v1/storefront/addresses.py (→ customers module) - app/api/v1/storefront/carts.py (→ cart module) - app/api/v1/storefront/products.py (→ catalog module) - app/api/v1/storefront/orders.py (→ orders/checkout modules) - app/api/v1/storefront/messages.py (→ messaging module) Converted legacy cart files to re-exports: - models/schema/cart.py → app.modules.cart.schemas - models/database/cart.py → app.modules.cart.models - app/services/cart_service.py → app.modules.cart.services This reduces API-007 violations from 81 to 69 (remaining violations are in admin/vendor routes - separate migration effort). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
14 lines
354 B
Python
14 lines
354 B
Python
# models/database/cart.py
|
|
"""
|
|
LEGACY LOCATION - This file re-exports from the canonical module location.
|
|
|
|
Canonical location: app/modules/cart/models/
|
|
|
|
This file exists for backward compatibility. New code should import from:
|
|
from app.modules.cart.models import CartItem
|
|
"""
|
|
|
|
from app.modules.cart.models.cart import CartItem
|
|
|
|
__all__ = ["CartItem"]
|