Adds a route in the collection.
The route to be added.
True if the route is the main route, false if alternative route