printParsedRoutes method
void
printParsedRoutes(
- List<MetaRoute>? routes0
)
Implementation
void printParsedRoutes(List<MetaRoute>? routes0) {
var routes = routes0;
if (routes == null) {
if (__lastRoutes.isEmpty) {
return;
}
routes = __lastRoutes;
}
__lastRoutes = routes;
logger.write('\n');
for (final route in routes) {
final root = '/${route.path}';
logger.info(darkGray.wrap(root));
for (final method in route.methods) {
logger.detail('method: ${method.path}');
final fullPath = p.join(root, method.path ?? '');
logger.info(
'${method.wrappedMethod}'
'${darkGray.wrap('-> ')}'
'$fullPath',
);
}
}
logger.write('\n');
}