Update to accept builder's array of routes instead of object.