Sha256: 7e9f5b93499a62804c36eae389d999212937f3c154fa4c4c67ce920ba5bf1226

Contents?: true

Size: 317 Bytes

Versions: 22

Compression:

Stored size: 317 Bytes

Contents

unless defined?(Rails)
  desc 'display all routes for Grape'
  task :routes do
    ApplicationEndpoint.routes.each do |api|
      method = api.route_method.ljust(10)
      path = api.route_path.ljust(40)
      description = api.route_description
      puts "     #{method} #{path} # #{description}"
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
gris-0.3.0 lib/tasks/routes.rake
gris-0.2.4 lib/tasks/routes.rake
gris-0.2.3 lib/tasks/routes.rake
gris-0.2.2 lib/tasks/routes.rake
gris-0.2.1 lib/tasks/routes.rake
gris-0.2.0 lib/tasks/routes.rake
gris-0.1.7 lib/tasks/routes.rake
gris-0.1.6 lib/tasks/routes.rake
gris-0.1.5 lib/tasks/routes.rake
gris-0.1.4 lib/tasks/routes.rake
gris-0.1.3 lib/tasks/routes.rake
gris-0.1.2 lib/tasks/routes.rake
gris-0.1.1 lib/tasks/routes.rake
gris-0.1.0 lib/tasks/routes.rake
gris-0.0.9 lib/tasks/routes.rake
gris-0.0.8 lib/tasks/routes.rake
gris-0.0.7 lib/tasks/routes.rake
gris-0.0.6 lib/tasks/routes.rake
gris-0.0.5 lib/tasks/routes.rake
gris-0.0.4 lib/tasks/routes.rake