Files
TimeTracker/scripts/check_routes.py
T
Dries Peeters 64b5fbe45d chore: move scripts to scripts/
- Move Python and shell scripts (apply_migration, check_routes, run_tests, etc.) to scripts/
- Move setup-https-mkcert and start-https (bat/sh) to scripts/
- Update start-local-test.bat and start-local-test.sh
2026-03-15 10:16:22 +01:00

28 lines
788 B
Python

#!/usr/bin/env python3
"""Check if export routes are registered"""
import os
import sys
# Add the project root to the path (parent of scripts/)
_script_dir = os.path.dirname(os.path.abspath(__file__))
_project_root = os.path.dirname(_script_dir)
sys.path.insert(0, _project_root)
from app import create_app
app = create_app()
print("\n=== Export Routes ===")
with app.app_context():
for rule in app.url_map.iter_rules():
if 'export' in str(rule):
print(f"{rule}")
print("\n✅ Routes are registered!")
print("\nTo access the new feature:")
print("1. Restart your Flask app: python app.py")
print("2. Go to: http://localhost:5000/reports")
print("3. Click on: 'Export CSV' button")
print("4. Or visit directly: http://localhost:5000/reports/export/form")