Update docstring for generate_routes function