- Auto-fixed 4,496 lint issues (import sorting, modern syntax, etc.) - Added ignore rules for patterns intentional in this codebase: E402 (late imports), E712 (SQLAlchemy filters), B904 (raise from), SIM108/SIM105/SIM117 (readability preferences) - Added per-file ignores for tests and scripts - Excluded broken scripts/rename_terminology.py (has curly quotes) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
35 lines
1.0 KiB
Python
35 lines
1.0 KiB
Python
# app/modules/marketplace/routes/api/admin.py
|
|
"""
|
|
Marketplace module admin routes.
|
|
|
|
This module aggregates all marketplace admin routers into a single router
|
|
for auto-discovery. Routes are defined in dedicated files with module-based
|
|
access control.
|
|
|
|
Includes:
|
|
- /products/* - Marketplace product catalog browsing
|
|
- /marketplace-import-jobs/* - Marketplace import job monitoring
|
|
- /letzshop/* - Letzshop integration
|
|
"""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from .admin_letzshop import admin_letzshop_router
|
|
from .admin_marketplace import admin_marketplace_router
|
|
from .admin_products import admin_products_router
|
|
|
|
# Create aggregate router for auto-discovery
|
|
# The router is named 'admin_router' for auto-discovery compatibility
|
|
admin_router = APIRouter()
|
|
|
|
# Include marketplace product catalog routes
|
|
admin_router.include_router(admin_products_router)
|
|
|
|
# Include marketplace import jobs routes
|
|
admin_router.include_router(admin_marketplace_router)
|
|
|
|
# Include letzshop routes
|
|
admin_router.include_router(admin_letzshop_router)
|
|
|
|
__all__ = ["admin_router"]
|