Sha256: 7d432d815f9f1d64f2df6686329853fc3e4fa1253cbb795db9843454822de8f4

Contents?: true

Size: 368 Bytes

Versions: 1

Compression:

Stored size: 368 Bytes

Contents

unless defined?(Rails)
  desc 'display all routes for Grape'
  task routes: :environment do
    require './config/application.rb'
    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

1 entries across 1 versions & 1 rubygems

Version Path
gris-0.5.8 lib/tasks/routes.rake