route

@Composable
fun route(vararg route: String, nestedRoute: @Composable RouteBuilder.() -> Unit)

Executes its children when the requested subroute matches one of these constant route.

To match foo/bar, create a route inside the first route.