Sha256: b7ead79b953145daaadfb18dbdb0db9e2f1a3065f6749add39d50e6278144b92
Contents?: true
Size: 505 Bytes
Versions: 4
Compression:
Stored size: 505 Bytes
Contents
namespace :api do desc "API Routes" task :routes => :environment do puts " #{'Method'.ljust(10)} #{'Version'.ljust(15)} #{'Path'}" puts " #{'------'.ljust(10)} #{'-------'.ljust(15)} #{'----'}" API::Base.routes.each do |api| method = api.route_method.ljust(10) version = (api.route_version || '').ljust(15) path = api.route_path path = path.gsub("/:version", "/#{version.rstrip}") if version puts " #{method} #{version} #{path}" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
grape_ape_rails-0.9.13 | lib/tasks/routes.rake |
grape_ape_rails-0.9.12 | lib/tasks/routes.rake |
grape_ape_rails-0.9.11 | lib/tasks/routes.rake |
grape_ape_rails-0.9.10 | lib/tasks/routes.rake |