Most airlines use a Preferential Bidding System to determine routes. Basically, pilots submit which routes they want to fly (based on location, schedule, etc.) and then a system assigns them routes, with more senior pilots having preference on getting their choices.