Skip to content

Instantly share code, notes, and snippets.

@oivoodoo
Created March 5, 2013 10:06
Show Gist options
  • Save oivoodoo/5089237 to your computer and use it in GitHub Desktop.
Save oivoodoo/5089237 to your computer and use it in GitHub Desktop.
rake task for printing grape routes.
namespace :grape do
desc 'Print compiled grape routes'
task :routes => :environment do
API.routes.each do |route|
puts route
end
end
end
@syedmusamah
Copy link

Guys, I just published a gem to display grape routes in a rails-like way: https://github.com/syedmusamah/grape_on_rails_routes. Any feedback would be greatly appreciated!

@theunixbeard
Copy link

Great gem @syedmusamah. The above gists no longer work with the latest version of Grape but your gem is flawless. Seeing as this is the first google search result for pretty print grape routes I figured should chime in to save other searchers some time.

@ndeto
Copy link

ndeto commented Aug 22, 2020

Thanks for the gem @syedmusamah! Confirmation that it still works in 2020!

@syedmusamah
Copy link

Amazing! Glad its still helping people :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment