explore method

List<Map<String, dynamic>> explore()

Generates a List of Maps containing route details.

Implementation

List<Map<String, dynamic>> explore() {
  return app.router.allRoutes.map((route) {
    return <String, dynamic>{
      'method': route.method,
      'path': route.path,
      'name': route.name,
      'summary': route.summary,
      'description': route.description,
      'isWebSocket': route.isWebSocket,
      'metadata': route.metadata,
    };
  }).toList();
}