lib/tasks/routes.rake in gris-0.5.8 vs lib/tasks/routes.rake in gris-0.5.9
- old
+ new
@@ -1,12 +1,13 @@
unless defined?(Rails)
desc 'display all routes for Grape'
task routes: :environment do
require './config/application.rb'
ApplicationEndpoint.routes.each do |api|
+ version = api.route_version.ljust(20)
method = api.route_method.ljust(10)
path = api.route_path.ljust(40)
description = api.route_description
- puts " #{method} #{path} # #{description}"
+ puts "#{version} #{method} #{path} # #{description}"
end
end
end