Sha256: 9093cae6459308a18e5bc192e2cae0e7faf6993197c64417198fa1118d1f8e53

Contents?: true

Size: 330 Bytes

Versions: 25

Compression:

Stored size: 330 Bytes

Contents

unless defined?(Rails)
  desc 'display all routes for Grape'
  task routes: :environment 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

25 entries across 25 versions & 1 rubygems

Version Path
gris-0.5.7 lib/tasks/routes.rake
gris-0.5.6 lib/tasks/routes.rake
gris-0.5.5 lib/tasks/routes.rake
gris-0.5.4 lib/tasks/routes.rake
gris-0.5.3 lib/tasks/routes.rake
gris-0.5.2 lib/tasks/routes.rake
gris-0.5.1 lib/tasks/routes.rake
gris-0.5.0 lib/tasks/routes.rake
gris-0.4.9 lib/tasks/routes.rake
gris-0.4.8 lib/tasks/routes.rake
gris-0.4.7 lib/tasks/routes.rake
gris-0.4.6 lib/tasks/routes.rake
gris-0.4.5 lib/tasks/routes.rake
gris-0.4.4 lib/tasks/routes.rake
gris-0.4.3 lib/tasks/routes.rake
gris-0.4.2 lib/tasks/routes.rake
gris-0.4.0 lib/tasks/routes.rake
gris-0.3.9 lib/tasks/routes.rake
gris-0.3.8 lib/tasks/routes.rake
gris-0.3.7 lib/tasks/routes.rake