fix: remove broken dev_tools router references after API route migration
The dev_tools API routes were moved to the monitoring module, but several files still tried to import the non-existent admin_router. This caused warnings during app startup. Changes: - Remove _get_admin_router() from definition.py - Clear routes/__init__.py and routes/api/__init__.py of broken imports - Update exceptions.py to import from monitoring.exceptions - Update code_quality_service.py to import from monitoring.exceptions Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,15 +2,15 @@
|
||||
"""
|
||||
Dev-Tools module route registration.
|
||||
|
||||
This module provides dev-tools routes with module-based access control.
|
||||
This module provides dev-tools page routes for admin pages.
|
||||
|
||||
Structure:
|
||||
- routes/api/ - REST API endpoints (code quality, tests)
|
||||
- routes/pages/ - HTML page rendering (component library, icons)
|
||||
|
||||
Note: Dev-tools is an internal module (admin-only), so there is no vendor router.
|
||||
Note: API routes (code quality, tests) have been moved to the monitoring module.
|
||||
Dev-tools is an internal module (admin-only), so there is no vendor router.
|
||||
"""
|
||||
|
||||
from app.modules.dev_tools.routes.api import admin_router
|
||||
|
||||
__all__ = ["admin_router"]
|
||||
# No routers to export - API routes moved to monitoring module
|
||||
# Page routes are auto-discovered from routes/pages/admin.py
|
||||
__all__ = []
|
||||
|
||||
Reference in New Issue
Block a user