Rename endpoint variable to route