add

external fun add(route: Route, mainRoute: Boolean)

Adds a route in the collection.

Parameters

route

The route to be added.

mainRoute

True if the route is the main route, false if alternative route