-refactor: using the route() command instead of a fragile gsub_file() to add routes in install_generator