- 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>
32 lines
730 B
Python
32 lines
730 B
Python
# app/api/v1/admin/customers.py
|
|
"""
|
|
LEGACY LOCATION - Re-exports from module for backwards compatibility.
|
|
|
|
The canonical implementation is now in:
|
|
app/modules/customers/routes/admin.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.admin import admin_router
|
|
"""
|
|
|
|
from app.modules.customers.routes.admin import (
|
|
admin_router,
|
|
router,
|
|
list_customers,
|
|
get_customer_stats,
|
|
get_customer,
|
|
toggle_customer_status,
|
|
)
|
|
|
|
__all__ = [
|
|
"admin_router",
|
|
"router",
|
|
"list_customers",
|
|
"get_customer_stats",
|
|
"get_customer",
|
|
"toggle_customer_status",
|
|
]
|