- 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.
17 lines
409 B
Python
17 lines
409 B
Python
#!/usr/bin/env python3
|
|
import main
|
|
|
|
print("=" * 80)
|
|
print("ALL REGISTERED ROUTES")
|
|
print("=" * 80)
|
|
|
|
for i, route in enumerate(main.app.routes):
|
|
if hasattr(route, 'path'):
|
|
print(f"{i+1:3}. {route.path:60}")
|
|
if 'time' in route.path.lower():
|
|
print(f" ^^^ TIMETRACKING ROUTE ^^^")
|
|
else:
|
|
print(f"{i+1:3}. {route}")
|
|
|
|
print(f"\n Total routes: {len(main.app.routes)}")
|