ModelProxy recive now a route

Changed the model generator to recive a route  instead of a path.