from app.main import app
routes = sorted({r.path for r in app.routes})
with open('scripts/routes_out.txt','w', encoding='utf-8') as f:
    for r in routes:
        f.write(r + '\n')
print('Wrote', len(routes), 'routes to scripts/routes_out.txt')
