from app.factory import create_app app = create_app() with open("routes_dump.txt", "w") as f: f.write("=== APP ROUTES ===\n") for route in app.routes: methods = getattr(route, "methods", "N/A") f.write(f"{methods} {route.path}\n") print("Dumped to routes_dump.txt")