Move generator run to a route