Changed delegate method allRoutes to Router object