describe method
Every route below this router, with the path it serves.
Each entry carries the metadata of every router it was mounted through, outermost first, so a description attached at any level is recoverable.
for (final route in app.describe()) {
print('${route.method} ${route.path}');
}
Implementation
List<MountedRoute> describe() {
return [
for (final route in flattenRoutes(this))
MountedRoute(
method: route.method,
path: route.path,
metadata: route.metadata,
),
];
}