- Move customer route implementations to app/modules/customers/routes/
- Convert legacy app/api/v1/{admin,vendor}/customers.py to re-exports
- Update router registrations to use module routers with access control
- Fix CustomerListResponse pagination (page/per_page/total_pages)
- Update URL routing docs to use storefront consistently
- Fix mkdocs.yml nav references (shop -> storefront)
- Fix broken doc links in logging.md and cdn-fallback-strategy.md
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
36 lines
871 B
Python
36 lines
871 B
Python
# app/api/v1/vendor/customers.py
|
|
"""
|
|
LEGACY LOCATION - Re-exports from module for backwards compatibility.
|
|
|
|
The canonical implementation is now in:
|
|
app/modules/customers/routes/vendor.py
|
|
|
|
This file exists to maintain backwards compatibility with code that
|
|
imports from the old location. All new code should import directly
|
|
from the module:
|
|
|
|
from app.modules.customers.routes.vendor import vendor_router
|
|
"""
|
|
|
|
from app.modules.customers.routes.vendor import (
|
|
vendor_router,
|
|
router,
|
|
get_vendor_customers,
|
|
get_customer_details,
|
|
get_customer_orders,
|
|
update_customer,
|
|
toggle_customer_status,
|
|
get_customer_statistics,
|
|
)
|
|
|
|
__all__ = [
|
|
"vendor_router",
|
|
"router",
|
|
"get_vendor_customers",
|
|
"get_customer_details",
|
|
"get_customer_orders",
|
|
"update_customer",
|
|
"toggle_customer_status",
|
|
"get_customer_statistics",
|
|
]
|