Phase 5 - Main Dashboard: - Dashboard overview page with system health stats - Jobs by status breakdown, success rates, top clients - Dashboard API (/api/dashboard/overview, by-client, problems, by-version) Phase 6 - Admin/Scraper Management: - Scrapers management page with traffic allocation UI - Admin API for scraper CRUD operations - Traffic percentage updates for A/B testing - Promote/deprecate scraper versions Phase 7 - Authentication: - API key authentication middleware - SHA-256 key hashing (keys never stored in plain text) - Scope-based authorization (jobs:read, jobs:write, admin) - Rate limiting per API key Also: - Updated api_server_production.py to include new routers - Extended core/database.py with dashboard query methods - Added dashboard link to sidebar navigation - Updated CONTEXT-KEEPER.md to mark all phases complete Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
18 lines
521 B
Python
18 lines
521 B
Python
"""
|
|
API Routes for ReviewIQ.
|
|
|
|
This module exports all route modules for easy import into the main server.
|
|
"""
|
|
from api.routes.batches import router as batches_router, set_database as set_batches_db
|
|
from api.routes.dashboard import router as dashboard_router, set_database as set_dashboard_db
|
|
from api.routes.admin import router as admin_router, set_database as set_admin_db
|
|
|
|
__all__ = [
|
|
'batches_router',
|
|
'set_batches_db',
|
|
'dashboard_router',
|
|
'set_dashboard_db',
|
|
'admin_router',
|
|
'set_admin_db',
|
|
]
|