bmc_hub/test_routes.py
Christian 34555d1e36 feat(timetracking): Implement time tracking module with frontend views, HTML templates, and database migrations
- Added FastAPI router for time tracking views including dashboard, wizard, and orders.
- Created HTML templates for the time tracking wizard with responsive design and Bootstrap integration.
- Developed SQL migration script for the time tracking module, including tables for customers, cases, time entries, orders, and audit logs.
- Introduced a script to list all registered routes, focusing on time tracking routes.
- Added test script to verify route registration and specifically check for time tracking routes.
2025-12-09 22:46:30 +01:00

18 lines
683 B
Python

#!/usr/bin/env python3
"""Test route registration"""
import main
frontend_routes = [r for r in main.app.routes if hasattr(r, 'path') and not r.path.startswith('/api')]
print(f"Found {len(frontend_routes)} frontend routes:")
for r in frontend_routes[:30]:
path = r.path if hasattr(r, 'path') else str(r)
endpoint_name = r.endpoint.__name__ if hasattr(r, 'endpoint') else 'N/A'
print(f" {path:50} -> {endpoint_name}")
# Check timetracking specifically
timetracking_routes = [r for r in main.app.routes if hasattr(r, 'path') and 'timetracking' in r.path]
print(f"\nTimetracking routes: {len(timetracking_routes)}")
for r in timetracking_routes:
print(f" {r.path}")