fix: resolve all remaining legacy import issues
- Update models/database/__init__.py to import from module locations - Update models/schema/__init__.py to remove deleted modules - Update models/__init__.py to import Inventory from module - Remove duplicate AdminNotification from models/database/admin.py - Fix monitoring module to import AdminNotification from messaging - Update stats schema imports in admin/vendor API - Update notification schema imports - Add order_item_exception.py schema to orders module - Fix app/api/v1/__init__.py to use storefront instead of shop - Add cms_admin_pages import to main.py - Fix password_reset_token imports - Fix AdminNotification test imports Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
3
main.py
3
main.py
@@ -64,6 +64,9 @@ from app.exceptions.handler import setup_exception_handlers
|
||||
# Import page routers (legacy routes - will be migrated to modules)
|
||||
from app.routes import admin_pages, platform_pages, storefront_pages, vendor_pages
|
||||
|
||||
# Import CMS module admin pages
|
||||
from app.modules.cms.routes.pages.admin import router as cms_admin_pages
|
||||
|
||||
# Module route auto-discovery
|
||||
from app.modules.routes import discover_module_routes, get_vendor_page_routes
|
||||
from app.utils.i18n import get_jinja2_globals
|
||||
|
||||
Reference in New Issue
Block a user