Create rake task to list API routes
user
```ruby
namespace :api do
  desc "API Routes"
  task routes: :environment do
    API::Root.routes.each do |api|
      method = api.route_method.ljust(10)
      path = api.route_path.gsub(":version", api.route_version)
      puts "     #{method} #{path}"
    end
  end
end
```
assistant