> Markdown version of [Getting Registered Routes](https://vaadin.com/docs/v10/flow/routing/tutorial-routing-get-registered-routes). Section index: [llms.txt](https://vaadin.com/docs/v10/flow/llms.txt)

# Getting Registered Routes

To retrieve all registered Routes in the application, you can use:

```java
Router router = UI.getCurrent().getRouter();
List<RouteData> routes = router.getRoutes();
```

The `RouteData` object contains all relevant information about the defined route, such as URL, parameters and parent layout.

## <a id="getting-registered-routes-by-parent-layout"></a>Getting Registered Routes By Parent Layout

To get all the routes defined by parent layout, you can use instead:

```java
Router router = UI.getCurrent().getRouter();
Map<Class<? extends RouterLayout>, List<RouteData>> routesByParent = router.getRoutesByParent();
List<RouteData> myRoutes = routesByParent.get(MyParentLayout.class);
```

See also:

- [Defining Routes With @Route](https://vaadin.com/docs/v10/flow/routing/tutorial-routing-annotation.md)

- [Router Layouts and Nested Router Targets](https://vaadin.com/docs/v10/flow/routing/tutorial-router-layout.md)
