Change delegate method allRoutes to Router object