#!/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}")
