Files
orion/app/modules/cms/routes/api/store.py
Samir Boulahtit aad18c27ab
Some checks failed
CI / ruff (push) Successful in 11s
CI / validate (push) Has been cancelled
CI / dependency-scanning (push) Has been cancelled
CI / docs (push) Has been cancelled
CI / deploy (push) Has been cancelled
CI / pytest (push) Has started running
refactor: remove all backward compatibility code across 70 files
Clean up 28 backward compatibility instances identified in the codebase.
The app is not live, so all shims are replaced with the target architecture:

- Remove legacy Inventory.location column (use bin_location exclusively)
- Remove dashboard _extract_metric_value helper (use flat metrics dict)
- Remove legacy stat field duplicates (total_stores, total_imports, etc.)
- Remove 13 re-export shims and class aliases across modules
- Remove module-enabling JSON fallback (use PlatformModule junction table)
- Remove menu_to_legacy_format() conversion (return dataclasses directly)
- Remove title/description from MarketplaceProductBase schema
- Clean billing convenience method docstrings
- Clean test fixtures and backward-compat comments
- Add PlatformModule seeding to init_production.py

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 13:20:29 +01:00

25 lines
677 B
Python

# app/modules/cms/routes/api/store.py
"""
CMS module store API routes.
Aggregates all store CMS routes:
- /content-pages/* - Content page management
- /media/* - Media library management
"""
from fastapi import APIRouter
from .store_content_pages import store_content_pages_router
from .store_media import store_media_router
# Route configuration for auto-discovery
ROUTE_CONFIG = {
"priority": 100, # Register last (CMS has catch-all slug routes)
}
store_router = APIRouter()
# Aggregate all CMS store routes
store_router.include_router(store_content_pages_router, tags=["store-content-pages"])
store_router.include_router(store_media_router, tags=["store-media"])