def inspect_routes(app: App) -> 'List[RouteInfo]':
    'Inspects the routes of an application.\n\n    Args:\n        app (falcon.App): The application to inspect. Works with both\n            :class:`falcon.App` and :class:`falcon.asgi.App`.\n\n    Returns:\n        List[RouteInfo]: A list of route descriptions for the application.\n    '
    router = app._router
    inspect_function = _supported_routers.get(type(router))
    if (inspect_function is None):
        raise TypeError('Unsupported router class {}. Use "register_router" to register a function that can inspect the router used by the provided application'.format(type(router)))
    return inspect_function(router)
Inspects the routes of an application.

Args:
    app (falcon.App): The application to inspect. Works with both
        :class:`falcon.App` and :class:`falcon.asgi.App`.

Returns:
    List[RouteInfo]: A list of route descriptions for the application.
def inspect_routes(app: App) -> 'List[RouteInfo]':
    'Inspects the routes of an application.\n\n    Args:\n        app (falcon.App): The application to inspect. Works with both\n            :class:`falcon.App` and :class:`falcon.asgi.App`.\n\n    Returns:\n        List[RouteInfo]: A list of route descriptions for the application.\n    '
    router = app._router
    inspect_function = _supported_routers.get(type(router))
    if (inspect_function is None):
        raise TypeError('Unsupported router class {}. Use "register_router" to register a function that can inspect the router used by the provided application'.format(type(router)))
    return inspect_function(router)